01-05-2017 07:57 PM
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
01-09-2017 11:32 AM
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
01-09-2017 02:22 AM
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.
Pending: The owner delegated the task and wants to review the result after the assignee has resolved the task.
Resolved: The 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
01-09-2017 11:32 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.