cancel
Showing results for 
Search instead for 
Did you mean: 

assignee versus owner

dirko
Champ in-the-making
Champ in-the-making
Dear List,

I use the following java code to list the properties of the active tasks:

WorkflowTaskQuery wftq = new WorkflowTaskQuery();
wftq.setTaskState(WorkflowTaskState.IN_PROGRESS);

List<WorkflowTask> workflowTaskList = workflowService.queryTasks(wftq,true);

for (WorkflowTask wft : workflowTaskList) {
  Map<QName, Serializable> map = wft.getProperties();
  for (QName qName : map.keySet()) {
      logger.debug("Task Property: " + qName.toString() + ":"+ map.get(qName));
  }
}

In the result (see below) I don't see the  {http://www.alfresco.org/model/bpm/1.0}assignee property, but i do see {http://www.alfresco.org/model/content/1.0}owner. Why is there no assignee? Is assignee stored in owner?

cheers,
dirk

14:12:04,089 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}description:Commentaar
reviseren
14:12:04,089 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}percentComplete:0
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}completionDate:null
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}pooledActors:[]
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}taskId:845
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}priority:2
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/content/1.0}owner:USER2191
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}status:Not Yet
Started
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}dueDate:null
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.aquafin.be/edm/model/workflow/1.0}commentaar:test
upgrade 4.1
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}startDate:Tue Nov 27
15:31:36 CET 2012
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}reassignable:false
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}package:workspace://SpacesStore/01e6102f-7345-411d-8df8-7162b7...
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}hiddenTransitions:
14:12:04,104 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/content/1.0}created:Tue Nov
27 15:31:36 CET 2012
14:12:04,120 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}packageActionGroup:
14:12:04,120 DEBUG
[be.aquafin.edm.workflow.ListAbandonedWorkflowsWebScript] Task
Property: {http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup:read_package_item_actions
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

The owner of a task is the current assignee. The bpm:assignee property is actually for a task input by which the current assignee can set the assignee for the next task, i.e. when he has been assigned a task where he must decide who will be the next in line to process the workflow. As long as you don't include the bpm:assignee property or its aspect in your task model, you will never see it in your task properties at runtime.

Regards
Axel