cancel
Showing results for 
Search instead for 
Did you mean: 

Task Query for Manual Tasks

pprestin
Champ in-the-making
Champ in-the-making
Hello,

I appear to be unable to query for manual tasks through the task service or historical task service. Is this by design? I can through great pains appear to find the activity through the historical activity instance query on the history service.

Is there a way to retrieve a completed manual task through either of the task query mechanisms?
3 REPLIES 3

trademak
Star Contributor
Star Contributor
What is your use case for that?
Aren't you looking for user tasks instead of manual tasks?
Manual tasks are just pass-through tasks.

Best regards,

pprestin
Champ in-the-making
Champ in-the-making
I am most definitely looking for manual tasks. Is there a reason they are not returned through the task service? Are they not considered tasks?

Here is the use case I am attempting to fulfill. I would be very very grateful if I could get some assistance in this effort as I've asked about it a number of times.

My users need to ad-hoc add persons or groups to approve an executing workflow. Essentially adding additional tasks in flight. The logic for this would be 0-n potential sub tasks.

All tasks in the workflow are essentially parallel. There is a start, some logic to determine which nodes to activate, then 1-n parallel user tasks that need to occur.

I was attempting to have a "hook" to attach subtasks to. I am attempting to use this manual task as the hook. At first pass the task would execute and pass through. Later in the workflow there would be an evaluation if there are >0 subtasks on the manual task and return to the task until the subtasks have been competed.

I'm more then open to an additional approach to this requirement although I have no better idea at this time.

Thank you for your assistance.

frederikherema1
Star Contributor
Star Contributor
Have you looked into the multi-instance capabilities? This way you can have X number of tasks created, based on a collection or on a count. With some gateway logic around it, seems to me that is something useful in your use case.