REST API creates the tasks with assignee defaulted as login user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2015 11:52 AM
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]
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2015 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2015 07:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2015 06:47 AM
We are using and testing this logic a lot and I haven't seen any odd behaviour in it, so would be good to have a unit test showing the issue.
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2015 05:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2015 07:34 AM
I think the issue is when we create new task on start of process instance the record is created in this table and the assignee_ column is updated with authenticated user.
Sorry I dont have test cases since I am still in evaluation phase for using Activiti workflow and creating demo application for my client. I am using REST APIfrom WCF services since its microsoft windows stack.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2015 02:45 PM
If the process definition contains an assignment rule to assign the user task to a specific group, Activiti has no logic to assign the task to an assignee instead of the configured group. So I don't understand what's happening here. How can I reproduce this exactly?
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2015 11:52 AM
I have attached my process definition in original thread and as you can see from the XML definition, the task is not assigned to anybody so why Acitivi is assigning to login user (authenticated user) which is "kermit" in my case.
To reproduce this:
1. Deploy the process definition file provided in Tomcat Activiti rest
2. Create the process instance for the process
3. Check the tables or Activiti explorer and you will see the task created is always assigned to login user.
Hope this helps

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 05:19 PM
A cleaner way to test this, would be to use the Activiti Engine directly with the Java API or REST API. Because the Explorer is just a demo application.
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2015 12:09 PM
REST API URI - runtime/process-instances
Method as POST
Basic Authentication user/password : kermit/kermit
The task is always assigned to kermit even though nothing is specified in task definition.
Attached the process definition xml herewith.
Hope this helps.
