Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

Index loop on a JavaObject


Recommended Posts

Hey team,

I have this BW 6 process where I am looping a Java Object, it's a set of messages from a RabbitMQ server.

However I am not finding a solution to keep track of the loops inside the Group, I already tried:

- Shared variables

- Session variables

- Different loop types

However the index staysstatic...

I believe there should be a straight solution to fix this issue, can you help me out

Best regards,

Link to comment
Share on other sites

  • 3 weeks later...

Hello,

If you use group types like "while", "for-each", "repeat" - these will have a variable called index in its configurations.

The index will +1 by default at every executuion. You can mention the looping condition with respect to this index variable.

For Ex. While Index < COUNT_OF_RECORDS

Additionally, this index variable will now be avalable to you to reference when configuring other downstream activities or acitivities within the loop.

Refer the attached image.

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...