cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create another task without resolving existing one.

vgauravsh
Champ in-the-making
Champ in-the-making
I have situation where one task is assigned to user u1. Now u1 wants other user u2 to review it and create task for him.
Basically user u1 is not resolving his task but do some action on UI which creates another task for u2.

I want to use same proc_instance_id for these tasks?  How we can achieve this using activiti?
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I would prefer to create subtask (e.g org.activiti.engine.test.api.task.SubTaskTest#testSubTask in activiti source).

Regards
Martin

Thanks for the suggestion, so if I created subTask, would it be possible to ensure that if subTask is not complete parent Task can not be resolved?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
The parent task can be completed when subtasks are still open. If you want to implement this check, you can add it to the e.g. org.activiti.engine.impl.persistence.entity.TaskEntity#complete
Regards
Martin