cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent a Task from completion while its subtasks(Check List tasks) are not yet completed?

paiyyavj13
Star Contributor
Star Contributor

HI,

I am enhancing my solution, and need information for below:

In my process, when a task is claimed a create a pre-defined set of subtasks. I want to prevent this task to be completed unless these set of subtasks are completed.

Is this possible with Alfresco Process Services?

Any pointers would help... Thank you...

Regards.

1 ACCEPTED ANSWER

cjose
Elite Collaborator
Elite Collaborator

Plugging in a task listener on task complete can solve this issue. In the task listener logic, you can check for any open sub tasks and throw an error if there are open tasks.

Quickly built an example - activiti-examples/CheckOpenSubtasksTaskListener.java at master · cijujoseph/activiti-examples · GitH... 

Hope this helps.

View answer in original post

2 REPLIES 2

cjose
Elite Collaborator
Elite Collaborator

Plugging in a task listener on task complete can solve this issue. In the task listener logic, you can check for any open sub tasks and throw an error if there are open tasks.

Quickly built an example - activiti-examples/CheckOpenSubtasksTaskListener.java at master · cijujoseph/activiti-examples · GitH... 

Hope this helps.

paiyyavj13
Star Contributor
Star Contributor

Thank you Ciju...