AnsweredAssumed Answered

Get workflow from task

Question asked by mangar on Dec 8, 2013
Latest reply on Dec 10, 2013 by mangar
2 part question.

I have a Webscript to get all tasks assigned to a user. Works fine.

What I need to know is what workflow it belongs to. I have this code:


     workflowService = registry.getWorkflowService();
     List<WorkflowTask> taskList = workflowService.getAssignedTasks(userId, WorkflowTaskState.IN_PROGRESS);


I iterate through this to make a nice UI list for the user.

How do I get a reference to the workflow itself if I have the taskID and stuff.

Part 2 (related)

I need this info to get values of the workflow model.

How would I get, say, the bpm_workflowPriority value for the workflow of this task?

Outcomes