[jboss-user] [jBPM] - JBPM Human Task

Hina Agarwal do-not-reply at jboss.com
Fri Sep 9 01:25:03 EDT 2011


Hina Agarwal [http://community.jboss.org/people/hina] created the discussion

"JBPM Human Task"

To view the discussion, visit: http://community.jboss.org/message/625661#625661

--------------------------------------------------------------
I am trying to exceute human task example given at  https://github.com/droolsjbpm/jbpm/tree/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask https://github.com/droolsjbpm/jbpm/tree/master/jbpm-examples/src/main/java/org/jbpm/examples/humantask.

Sometimes it run correctly and giving following output:

Sales-rep executing task Request Review(13: null)
krisv executing task Request Approval(18: null)
john executing task Request Approval(17: null)
sales-rep executing task Request Reminder(14: null)
result = Accept
ActorId = sales-rep
description = Need a new laptop computer
userId = krisv
TaskName = Request Reminder
date = Fri Sep 09 10:47:40 IST 2011
comment = Agreed, existing laptop needs replacing


But if I trying to debug it or run it normally,sometimes it gives output mentioned below:

Sales-rep executing task Request Review(8: null)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
          at java.util.ArrayList.RangeCheck(ArrayList.java:547)
          at java.util.ArrayList.get(ArrayList.java:322)
          at org.jbpm.examples.humantask.HumanTaskExample.main(HumanTaskExample.java:94)
 


I can't able to understand this behaviour of program. Why this is happening? Is it related with time gap or what?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/625661#625661]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110909/ef81b915/attachment.html 


More information about the jboss-user mailing list