Can it be possible add Task States other than DelegationStates in the Activiti BPMN2

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Can it be possible add Task States other than DelegationStates in the Activiti BPMN2

Jump to solution

Hi,

I have noticed that DelegationStates have only 'PENDING' and 'RESOLVED' assigned. Is is possible to add other states like 'OPEN' or 'ERROR' as well?

Regards,

Krish

1 Solution

Accepted Solutions
Highlighted
Intermediate

Re: Can it be possible add Task States other than DelegationStates in the Activiti BPMN2

Jump to solution

Krish,

Further to Thong's answer.
Remember, Activiti is a completely open source environment, therefore you can easily add as many delegation states as you want, you simply need to create the logic to support each state.

Cheers,
Greg

View solution in original post

2 Replies
Highlighted
Established Member II

Re: Can it be possible add Task States other than DelegationStates in the Activiti BPMN2

Jump to solution

Hi Krish,

Activiti task's delegationState can only be null, 'pending' or 'resolved'. See Activiti documentation about task here Activiti User Guide and Java doc here DelegationState (Activiti - Engine 5.22.0 API) 

Also check for methods 'delegateTask' and 'resolveTask' in TaskService Java Doc here TaskService (Activiti - Engine 5.22.0 API) . The doc also explains the exceptions when you are dealing with task delegation. 

PendingThe owner delegated the task and wants to review the result after the assignee has resolved the task.

ResolvedThe assignee has resolved the task, the assignee was set to the owner again and the owner now finds this task back in the ToDo list for review.

Hope this helps,

Thanks,

Thong Huynh

bp3‌

Highlighted
Intermediate

Re: Can it be possible add Task States other than DelegationStates in the Activiti BPMN2

Jump to solution

Krish,

Further to Thong's answer.
Remember, Activiti is a completely open source environment, therefore you can easily add as many delegation states as you want, you simply need to create the logic to support each state.

Cheers,
Greg

View solution in original post