How to process a set of object in cycle

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2014 04:23 AM
Hi, I have following problem:
suppose on some stage of my workflow I get an array (or set, or something else iterable) of some homogeneous objects. I need to send each member of this set to another task, process it, return to the set, take another member and repeat until everything in the set is processed; after that the workflow continues executing the following task.
Another option is to have heterogeneous objects and choose the task to process depending on the type of the given object.
How to accomplish that?
Thank you.
suppose on some stage of my workflow I get an array (or set, or something else iterable) of some homogeneous objects. I need to send each member of this set to another task, process it, return to the set, take another member and repeat until everything in the set is processed; after that the workflow continues executing the following task.
Another option is to have heterogeneous objects and choose the task to process depending on the type of the given object.
How to accomplish that?
Thank you.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2014 08:09 AM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2014 08:22 AM
I've seen this, thank you. But is there any example showing how to do that? Maybe I am missing the whole conception, but how to pass to the node the pool of objects? How to pass them further? I will have them as json string, or List of POJOs, whatever.
Should I write a class where everything will be done?
Should the set of objects passed as a json or somehow as POJO blob? If blob, then could you explain the mechanism?
Should I write a class where everything will be done?
Should the set of objects passed as a json or somehow as POJO blob? If blob, then could you explain the mechanism?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2014 02:44 AM
Hi,
Plenty of examples can be found in activiti jUnit test
Regards
Martin
Plenty of examples can be found in activiti jUnit test
org.activiti.engine.test.bpmn.multiinstance.MultiInstanceTest
. Regards
Martin
