[jBPM] - Re: How to model human-task with sub-employees
by Maciej Swiderski
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: How to model human-task with sub-employees"
To view the discussion, visit: https://community.jboss.org/message/722816#722816
--------------------------------------------------------------
I meant to have single process instance but multiple instances of human task that is assigned to review. So, in that case iteration of the loop will be for a level in a hierarchy of employees. That could mean there will be only one employee responsible for review (at CEO level) or there could be number of employees (at lower levels).
In first case (CEO), there will be single instance of Perform Review human task that will prevent of going further unless review was completed. Next assign new reviewers will be responsible for looking into some service to get list of downstream employees responsible for review (and that could be more than one) and will start new iteration. Perform review should be multipleinstance node that can create any number of instances of that human task and assign to every reviewer from given collection. Again all employees on the same level can work in parallel with their tasks. I think process instance will wait for all employees on given level to finish their tasks before new iteration will start - is that acceptable in your case?
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722816#722816]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[jBPM] - How to model human-task with sub-employees
by Ryan Peterson
Ryan Peterson [https://community.jboss.org/people/rrpeterson] created the discussion
"How to model human-task with sub-employees"
To view the discussion, visit: https://community.jboss.org/message/722660#722660
--------------------------------------------------------------
Hi guys,
I'm trying to figure out the best way to model the following workflow:
Starting from the top down (let's say CEO), an employee is responsible for submitting a review for their direct employees. Once the review is submitted, that employee is responsible for reviewing their employees. This behavior should repeat until the entire tree of employees within the company is traversed.
I've studied the "Evaluation" example, and this is similar to the behavior I need, except it's not dynamic. It's fixed for a specific number of required reviews. I have also looked into MultipleInstance, that runs a sub-process once for each element in a collection, which is also similar to what I need, except each sub-employee must wait until their subervisor completes their review before being allowed to review the next level of employees. Say for instance a notification is sent when the CEO should review his/her employees, once those reviews are done the next level of employees receive a notification that they need to review their employees, etc.
If anyone has any suggestions how to model this within jBPM5/BPMN I'd really appreciate it!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722660#722660]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months