Skip to Content
author's profile photo Former Member
Former Member

UDF required For Loop

HI Friends

I need a UDF to iterate the loop with Number of Formids in the given file.

Actual process is i need to do some steps in BPM based on form ids coming from third party(webservices)

If formd count is 4 then need to iterate the loop 4 times every time next form need to send for BPM flow

1 st iteration --fromid1

2nd iteration--- Formid2.....and so on..

can anyone please help me on this into this

Regards,

Deep

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2009 at 04:57 AM

    How does the form id comes from the third party?Do you have to read a text file?

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi sandeep,

      Can you please explain your requirement properly...If you want to get the same Formid like what you have explained below..

      on first iteration formid has to be sent as 1234
      second iteration formid has to be sent as 4342
      

      For this no need of UDF. You can achieve this using Standard Functions suggested by Kubra.

      Thanks

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2009 at 05:27 AM

    u can use std function

    formid-- >removecontext ---->target field.

    or udf you can use as

    for(int i =0; i<formid.length;i++)
    {
    result.addValue(formid<i>);
    }
    
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.