-
1. Re: Non-trivial workflow example with multiple row task output
salaboy21 Dec 7, 2013 7:46 AM (in response to tmcclure0501)Hi Tim,
Not sure to understand what kind of example do you want to see. Did you check the examples here: https://github.com/droolsjbpm/jbpm-playground
I'm willing to start writing more complex examples there, but I guess that we are already covering what you need. If you can elaborate more on what do you want to see I can try to create an example during the week.
Cheers
-
2. Re: Non-trivial workflow example with multiple row task output
tmcclure0501 Dec 7, 2013 12:08 PM (in response to salaboy21)The use case:
We are executing a task to retrieve a list of documents from our legacy document management system. The web service call returns a JSON string containing a list of documents. We want to display the list of documents on the task from of the next task in the overflow. We defining the task output as a object and we mimicked returning of the data to match how you return data from your java class (reflection) work item. What my team is struggling to understand is how to map the multi-record output as input to the next task. In reviewing most of the example workflows the task seem to perform an independent task with the object that is being passed back to the work item manager set to null
I appreciate your help - any example or documentation you can provide will be greatly appreciated. We like your framework and are slowly starting to realize how powerful it can be - but the examples do not seem to really demonstrate the true power - however I understand the challenge - complex examples are hard to deploy and all teams have limited resources.
-
3. Re: Non-trivial workflow example with multiple row task output
salaboy21 Dec 7, 2013 12:42 PM (in response to tmcclure0501)I think that I understand now what are you looking for. So looking here: https://github.com/droolsjbpm/jbpm-playground/blob/master/customer-relationships-workitems/src/main/java/org/jbpm/customer/services/ManagersReportWorkItemHandler.java#L37
You can see that I'm completing the work item with a null set of results.
That null can be a Map<String, Object> which based on the output mappings of the task the process variables will be replaced and used in the next task in the process.
I cannot create an example before Thursday, but you can take a look at the mappings in the Human Tasks (in the same repo) and apply the same concepts.
-
4. Re: Non-trivial workflow example with multiple row task output
tmcclure0501 Dec 8, 2013 7:33 PM (in response to salaboy21)Thanks Mauricio - an example that demonstrates the displaying of a HashMap or list of beans with an HTML markup form would be greatly appreciated.
-
5. Re: Non-trivial workflow example with multiple row task output
tmcclure0501 Dec 9, 2013 8:41 PM (in response to tmcclure0501)Mauricio,
Actually we are trying to put together a demo - took you just points us in the right direction of getting data modeler object to show up from a domain service call as input to the next form in the process. We cannot get anything to display.