-
1. Re: How to retrieve unfinished tasks from process instance in jbpm 5
pgoncalves Jun 21, 2012 9:36 AM (in response to mduk)Hi,
any progress about this stuff?
Regards
-
2. Re: How to retrieve unfinished tasks from process instance in jbpm 5
salaboy21 Jun 21, 2012 10:41 AM (in response to pgoncalves)This can be done using the Task Events features that I'm adding at the moment.
Stay tuned, I will post some examples soon
-
3. Re: How to retrieve unfinished tasks from process instance in jbpm 5
mduk Jun 21, 2012 12:02 PM (in response to pgoncalves)Pedro - we ended up doing the following. I feel like there definitely a better way as Mauricio suggested:
1. Find active nodes
2. Find all nodes after nodes in #1
3. Find all human nodes in #2
Notes on 1.:
ProcessInstanceLog processInstanceLog = jpaDbLog.findProcessInstance(new Long(instanceId))
Notes on 3.:
while (node != null) { if (node instanceof HumanTaskNode) { list.add((HumanTaskNode)node); } connections = null; connections = node.getOutgoingConnections("DROOLS_DEFAULT"); if (connections != null && connections.size() > 0) { node = node.getOutgoingConnections("DROOLS_DEFAULT").get(0).getTo(); } else { break; } } I hope this helps.
-
4. Re: How to retrieve unfinished tasks from process instance in jbpm 5
salaboy21 Jun 21, 2012 12:29 PM (in response to mduk)Ouch, that's too complicated.. but yes.. I will provide more simplistic examples.
Cheers
-
5. Re: How to retrieve unfinished tasks from process instance in jbpm 5
pgoncalves Jun 21, 2012 1:29 PM (in response to salaboy21)Mdu thanks for your example, I will try it while I'm waiting for Mauricio examples.
Mauricio, then let us know when you have the examples. Where will you post them? Your blog?
Thanks
-
6. Re: How to retrieve unfinished tasks from process instance in jbpm 5
marcio.dantas Oct 2, 2012 3:14 PM (in response to salaboy21)Hi Mauricio,
did you implement the examples?
thx