AnsweredAssumed Answered

REST API creates the tasks with assignee defaulted as login user

Question asked by shailk on Jun 15, 2015
Latest reply on Jul 1, 2016 by swapnil
I am creating BPMN process instance in which first step creates user task which is external (orbeon) form capture.

I am calling runtime/process-instances REST API which has initiator variable parameter passed as "kermit" but nothing is defined in BPMN process XML but even though the assignee is always updated as "kermit" and owner is also updated as "kermit".

I am attaching herewith BPMN process xml and the output from rest client.

id: "22510"
url: "http://localhost:8082/activiti-rest/service/runtime/tasks/22510"
owner: "kermit"
assignee: "kermit"
delegationState: null
name: "Capture form"
description: null
createTime: "2015-06-15T16:32:55.417+01:00"
dueDate: "2015-06-15T17:02:55.420+01:00"
priority: 50
suspended: false
taskDefinitionKey: "theTask"
tenantId: ""
category: null
formKey: "http://localhost:8082/orbeon/fr/TestWorkflow/TestWorkflow/new"
parentTaskId: null
parentTaskUrl: null
executionId: "22501"
executionUrl: "http://localhost:8082/activiti-rest/service/runtime/executions/22501"
processInstanceId: "22501"
processInstanceUrl: "http://localhost:8082/activiti-rest/service/runtime/process-instances/22501"
processDefinitionId: "oneTaskProcess:1:34"
processDefinitionUrl: "http://localhost:8082/activiti-rest/service/repository/process-definitions/oneTaskProcess:1:34"
variables: [0]