[rules-users] [droolsflow] JPAKnowledgeService - how do you reload a Session with Processes?
Bill Tarr
javatestcase at yahoo.com
Mon Oct 26 14:48:21 EDT 2009
Thanks Kris,
That seems like the solution I was looking for...
I'll try persisting my session ID in my Claims domain object, and walking the node instances first.
If that doesn't work, I'll try create a custom log object to track processes.
Either way, this thread has been a huge help.
Bill
----- Original Message ----
From: Kris Verlaenen <kris.verlaenen at cs.kuleuven.be>
To: Bill Tarr <javatestcase at yahoo.com>
Sent: Sat, October 24, 2009 7:47:30 PM
Subject: Re: [rules-users] [droolsflow] JPAKnowledgeService - how do you reload a Session with Processes?
Quoting Bill Tarr <javatestcase at yahoo.com>:
> However, I don't see any methods in either StatefulKnowledgeSession
> or ProcessInstance that would enable me to gather up SubProcess node
> instances.
>
> Could you point me in the right direction on how I could do this?
>
Yes, cast the process instance to a WorkflowProcessInstance, that way
you can use getNodeInstances() to get all active nodes. You'll then
probably have to use instanceof SubProcessNodeInstance to only filter
out sub-process nodes, and then use getProcessInstanceId() to retrieve
the id of the sub process instance.
Kris
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the rules-users
mailing list