Skip to Content
avatar image
Former Member

Increment source conext values source as group - Mapping

Hi Experts,

To increment the values in context as group I tried using counter or Index both didn't work. I think I need to go for UDF.


Thanks,

Pooja

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 01, 2017 at 10:41 AM

    Just try the below one and see if it satisfies the requirement.

    Code For Calculate1(all Values of Queue):

    int k=1;
    for(int i=0;i<var1.length;i++)
    {
    result.addValue(k);
    k++;
    }



    Code For Calculate2(all Values of contexts):

    for(int i=0;i<var1.length;i++)
    {
    result.addValue(var2[0]+var1[i]);
    }

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 01, 2017 at 08:16 AM

    Hi Pooja!

    How is the output nodes count is calculated? Does it depends on source nodes/elements count?

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded