Hi all,

In BPMN user tasks, if a task assignee became unavailable (eg: on
vacation), assigned tasks are getting delayed and anyone else cannot work
on them either.

This feature is to provide an API to allow automatically substitute the
user in future tasks and to reassign the existing tasks. Follow the below
diagrams for more details.

*Upon user unavailable request*




*​​​*substitute(user, tasks, from, to, substitute) :

   - user - user going to be unavailable
   - tasks - optional. list of tasks that should reassign. All tasks will
   be reassigned if not provided
   - from, to - optional. unavailable period. if not provided, current
   timestamp to forever
   - substitute - optional. user who tasks getting assigned to. the already
   defined user is used if not provided

updateSubstitute() : update the DB with user unavailability and substitute
user.

getTaskList(user) : get the tasks with the user as assignee

delegateTasks() : change assignee to substitute

scheduleForrevert(from,to) : start a scheduler, to update the DB at the
'to' and 'from' timestamps.

*New Task creation*

All the task creation events will be validated by this listener after this
feature is enabled.

After the given time period, the database will be updated. After this point
user won't be substituted.

Please provide your suggestions.

Regards,
Vinod
​






-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to