ActivitiWorkflowEngine does not include receiveTask

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

ActivitiWorkflowEngine does not include receiveTask

Hello,

we have encounter some issue. We would like to use Activiti receiveTask for some system handling (waiting for another action to happen or to be processed by cron).

But in our workflow history we are not able to get these type of tasks by workflow definition. I am able to query for these tasks, but Activiti API does not seem to query it by itself.

If we use: share/proxy/alfresco/api/workflow-instances/activiti$1073?includeTasks=true ; receiveTask is not there.

Is there any way to get these tasks?

Reason: user should see that workflow is still active and that the task is actually in system state waiting for something.

 

Edit: we use class: org/alfresco/repo/workflow/activiti/ActivitiWorkflowEngine.java and it's method:

public List<WorkflowTaskDefinition> getTaskDefinitions(String workflowDefinitionId)

But these one apparently returns only user tasks. And I really don't wanna override this method.