Example of Process Model that iterate over structured data with maxOccurance > 1 [message #1721660] |
Thu, 28 January 2016 23:52 |
Roger DN Messages: 9 Registered: January 2016 |
Junior Member |
|
|
I am creating a Process Model that processes Structured data. The Structured data contains repeating child items. The Structured Data looks like this:
<Trades>
<Trade id="1" NotionalQty="100" Cpty="Cpty1"/>
<Trade id="2" NotionalQty="200" Cpty="Cpty2"/>
</Trade>
Trades has one or more Trade, each Trade has an Id, Cpty, NotionalQty, etc.
I have looked at the Join/Split and loop docs but I cannot figure out how to loop over Structured Data defined with repeating elements without an overly complex set of Activities (see attached).
Please post a minimal example of a Process Model that demonstrates how a to iterate over the Trades using a Multi Instance type loop. I cannot igure out how to set the Multi Instance parameters (Input,Counter,Output and thier purpose) as the documentation is thin and I could not find any working examples.
Ultimately I would like to create a manual task for each Trade.
Thanks in advance.
-
Attachment: Trades.xsd
(Size: 0.94KB, Downloaded 215 times) -
Attachment: Counter.java
(Size: 2.98KB, Downloaded 196 times) -
Attachment: Tester.xpdl
(Size: 94.87KB, Downloaded 289 times)
[Updated on: Thu, 28 January 2016 23:55] Report message to a moderator
|
|
|
|
|
|
|
Re: Example of Process Model that iterate over structured data with maxOccurance > 1 [message #1721992 is a reply to message #1721984] |
Tue, 02 February 2016 07:29 |
|
Roger,
even though the model was not create with the same Stardust version (hence the warning) it should work anyway.
The model was create in the web modeler. To make such a model compatible with the Eclipse modeler it needs to be migrated as described in the documentation. However, you should not have to do this. Simply import the model into the web modeler and deploy it from there. Seems like this worked well for Ashish.
The web modeler and direct execution in the runtime have become the new standard. The debugger in Eclipse does not support all types of applications. It has become very quick and easy to perform round-trips (model, deploy, test) within the actual runtime and portal. The debugger hardly provides any additional benefit anymore.
Please consider the web modeler and testing in the runtime and let us know if you face any issues.
Rob
|
|
|
Powered by
FUDForum. Page generated in 0.04145 seconds