flowdata.get() returns a String which means that your condition compares
Strings. Convert them to Number before comparing.

Greetings
Matthias


Am 29.06.2012 07:36, schrieb lvaradha:
>
> UserApplication verison 4.0.1
>
>
> I see couple for posting for Loop in ResourceRequest activity which it
> is not working for me in this case. I would be great if some one guide
> me how to resolve this.
>
>
> My workflow
>
> 1. Start
>
> 2. Mapping1
>
> 3. Condition (On True goes below)
>
> 4. Mapping2
>
> 5. Resource Rquest
>
>
> 6. Mapping3
>
> Goes to Step 3.
>
>
> Below are my expression/function in each workflow steps
>
> Step 2. Mapping1
>
> Source Expression :
>
> flowdata.getObject('Start/partner_user_creation_from/ActiveDirectoryList').size()
> Target Expression :
> flowdata.Start/partner_user_creation_from/UpperRange
>
> Source Expression :
> 0
> Target Expression :
> flowdata.Start/partner_user_creation_from/Counter
>
>
> Step 3. Condition
>
> flowdata.get('Start/partner_user_creation_from/Counter')<flowdata.get('Start/partner_user_creation_from/UpperRange')
> (On False )
> Goes to next set of loop
>
> ( On True )
>
> Step 4. Mapping2
> Source Expression :
> flowdata.getObject('Start/partner_user_creation_from/ActiveDirectoryList').get((flowdata.get('Start/partner_user_creation_from/Counter'))*1)
> Target Expression :
> flowdata.Start/partner_user_creation_from/FinanlResourceOutPut
>
> Step 5. Resource request activity
>
> Resource flowdata.get('Start/partner_user_creation_from/FinanlResourceOutPut')
>
>
> Step 3. Mapping3
> Source Expression :
> ((flowdata.get('Start/partner_user_creation_from/Counter')*1)+1)
> Target Expression :
> flowdata.Start/partner_user_creation_from/Counter
>
>
>
> This logic works fine for me when my UpperRange is 9 and less
> Step 2. Mapping1
>
> Source Expression :
>
> flowdata.getObject('Start/partner_user_creation_from/ActiveDirectoryList').size()
> Target Expression :
> flowdata.Start/partner_user_creation_from/UpperRange
>
>
>
> When my UpperRange value goes above 10 its take the first value.. Eg:
> for 10 it takes the count as "1" and the above loop run's for 2
> number for times (for count 0 and 1) and comes out of the condition.
>
> For 20 it takes as "2" and the above loop run's for 3 number for
> times (for count 0,1 and 2) and comes out of the condition.
>
> I believe it is considering it as a ArrayList hence behaving like
> this. Can some help's me fix this issue.
>
>