JBoss Community

Re: How to model human-task with sub-employees

created by Ryan Peterson in jBPM - View the full discussion

Thank you for your reply Maciej!

 

That's sounds very close to solving my issue, my only point of concern is the behavior at "Assign New Reviewers":  Will jBPM spawn off new processInstances for each sub-employee?  For example if a manager has two employees, and they each have three employees:

 

1.  The manager performs the review of his employees

2.  Somewhere a check is made to see if the manager's employees have employees

3.  Yes they do, Assign the new reviewers

At this point here, how does the processInstance go from a single instance for the manager, to two instances for the manager's employees?  This is necessary because each sub-employee will complete a review on different schedules, and each needs to be checked individually for sub-employees after their review is complete. 

Is it possible to start a new process, or call an external process from a previously started process?

From the examples I've read it seems like a sub-process might be the key here, I'm just not quite sure how to get the behavior I'm looking for.

 

Thanks again!

Reply to this message by going to Community

Start a new discussion in jBPM at Community