Skip to Content
0
Jul 06, 2009 at 06:17 PM

ccBPM - Index field in the expression editor

31 Views

I've got a BPM process that needs to multicast a message for instance of a particular node in the source message.

I have a multiline line container object that stores "job_numbers". That multiline object is iterated through a ForEach block. Inside the ForEach block, I have an integer counter called "loop_index" that increments each pass through the loop. ...pretty simple so far.

I want to use the loop_index value to select a particular item from another multiline container called 'job_state". ....so I want to use loop_index as a subscript - i.e. job_state[ loop_index ]. That should be pretty simple, but the expression editor has me baffled.

In the expression editor I can select a multi-line container element. The field right next to the container element name is labeled 'index". I can't use the index field for anything! It won't take a constant number, string or xsd:integer container element.

What is the function of the "index" field in the expression editor?