Zeliang Huang [
http://community.jboss.org/people/ossa] created the discussion
"Questions On Mulitple Instances JBPM 5"
To view the discussion, visit:
http://community.jboss.org/message/633998#633998
--------------------------------------------------------------
Hi all,
My requirement goes like this:
1. An applicant submits an application.
2. The application will then be routed to multiple approvers in parallel. Each approver
will need to either approve or reject the application. The list of approvers will only be
known at runtime.
3. Once any approver rejects the application, the applicant will need to change and
resubmit it again.
I am able to achieve step2 by putting the the "approve" human task inside a
"multiple instances" node. My question is when one of the approver rejects the
application, how do I notify those tasks pending approval. Preferrably, I want to cancel
those task since they are no longer valid.
One way I could think of is to do a query of all the pending task base on the
processInstanceId and skip each of them through the TaskClient. However, that does look
like the best way. Any insight is appreciate
thanks
-Zeliang
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/633998#633998]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]