cancel
Showing results for 
Search instead for 
Did you mean: 

ccBPM Loop Condition Editor

Former Member
0 Kudos

Hi

I am trying to control the number of iterations of a Loop witihn a ccBPM Integration Process.

I have a Container name: index type: xsd:integer , which is initialised to 0 before the loop is entered.

I also have Container name: InterfaceCount which is an Abstract Interface containing the total number of iterations required.

In the Condition Editor for the Loop, if I put index!=InterfaceCount

... it complains that types xi:operation and xsd:integer cannot be compared.

Would someone be able to tell me the correct way of doing this please?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Try index > 0

Only For string you can use compare operation sign not equal to (!=)

whereas for integer we use < or > or >=

Former Member
0 Kudos

Hi. Thanks for the reply.

What I need to do is compare index to a value passed in on a field on a message.

Maybe I need to define another integer container, and then use a 'container operation' to extract the interface field to this new integer container, before entering the loop. Then I can compare my 'index' integer with the new one to control the loop?

former_member854360
Active Contributor
0 Kudos

This Pi loop is basically a while loop.

Suppose you inteeface count=6

then assign it to a container

in loop put count<interface count

baskar_gopalakrishnan2
Active Contributor
0 Kudos

In your case declared integer variable is index..

so do condition like index>interfacecount

Answers (0)