Hi man, 
Did you recognize this error after update?

Why are you doing that if you have the human tasks Apis to complete a task that 
automatically set the result values.

I would like to take a look at your issue, can you provide me more info about 
it?

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-mailingli...@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to