Hi Kris,
I do not see method to access SubProcessNodeInstance from process
instance...
I see only following getters....
ProcessInstance pi = ksession.getProcessInstance(111);
pi.getClass()
pi.getEventTypes()
pi.getId()
pi.getProcessId()
pi.getProcessName()
pi.getState()
Am I missing something... Can you point to sample code?
Thanks,
-----Original Message-----
From: Kris Verlaenen [mailto:Kris.Verlaenen@cs.kuleuven.be]
Sent: Sunday, July 12, 2009 12:38 PM
To: Rules Users List; Doshi, Bhadresh
Cc: rules-users(a)lists.jboss.org
Subject: Re: [rules-users] Drools SubFlow (Sub -Process) query API
There is no one method API to do this at this point. However, if you
have a process instance that is waiting for a sub-process to complete,
there always is a SubProcessNodeInstance as part of the parent process
instance that contains the info you need.
So what you could do is iterate over the node instances of the parent
process instance using WorkflowProcessInstance.getNodeInstances() and
retrieve the information you need using
SubProcessNodeInstance.getProcessInstanceId().
You can probably implement this as a utility method that simply uses the
existing API.
Kris
Quoting bdoshi <bhadresh.doshi(a)fnis.com>:
Hi,
I am new to drools and have following scenario and question.
Consider my main flow "A" (runtime instance id 111) which has and
invokes
(subprocess)SubFlow "B" (runtime instance id 222).
Question,
Is there an API to find the list of subprocess (subflow) associated
with
parent instance or parent process associated with a given
subprocess?
e.g. in above case... From process instance 111 can we get handle or
information of 222
or
form process instance 222, can I get information of parent who
created this
instance (111).
Thanks,
--
View this message in context:
http://www.nabble.com/Drools-SubFlow-%28Sub--Process%29-query-API-tp2443
4397p24434397.html
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm
_____________
The information contained in this message is proprietary and/or confidential. If you are
not the
intended recipient, please: (i) delete the message and all copies; (ii) do not disclose,
distribute or use the message in any manner; and (iii) notify the sender immediately. In
addition,
please be aware that any message addressed to our domain is subject to archiving and
review by
persons other than the intended recipient. Thank you.
_____________