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.
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.
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.
Thanks Mauricio - an example that demonstrates the displaying of a HashMap or list of beans with an HTML markup form would be greatly appreciated.
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.