[rules-users] WorkItemNodeInstance and the on exit action

Salaboy salaboy at gmail.com
Fri Jul 9 10:58:35 EDT 2010


About the out-mapping attribute, you are right this will copy the values from the variables inside the workitem to the process level.
Greetings

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jul 9, 2010, at 11:22, Chris Raschl <c.raschl-mailinglists at dyless.com> wrote:

> Hi Kris,
> we experienced some troubles with our drools flow integration today
> (we upgraded to the lastest snapshot) and I found out that is has to
> do with a fix (see [1]) you commited some time ago.
> 
> Our problem is, that we access the data submitted by the user to
> finish a human task in the on exit action of the human task node
> like this:
> 
> WorkItemNodeInstance wini = (WorkItemNodeInstance)context.getNodeInstance();
> Map<String, Object> result = (Map<String, Object>)wini.getWorkItem().getResult("Result");
> 
> This results in a NPE because the workItemId is set to -1 in the WorkItemNodeInstance
> before getWorkItem() is called. So getWorkItem() returns null.
> 
> Is there a better (recommended) way to work with human task data? Maybe using an
> out-mapping?
> 
> Thanks,
> chris
> 
> [1] http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/workflow/instance/node/WorkItemNodeInstance.java?r1=32801&r2=
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list