Hi, we are using Activiti REST war in our application and we are using custom authentication and it is working perfectly fine. We can start a process instance…etc. But when we check the history of a process instance, the "startUserId" value is set to null.
{
"id": "15001",
"url": "http://localhost:8080/activiti-rest/service/history/historic-process-instances/15001",
"businessKey": null,
"processDefinitionId": "Review:1:2508",
"processDefinitionUrl": "http://localhost:8080/activiti-rest/service/repository/process-definitions/Review:1:2508",
"startTime": "2015-04-07T17:16:34.000+05:30",
"endTime": null,
"durationInMillis": null,
"startUserId": null,
"startActivityId": "start",
"endActivityId": null,
"deleteReason": null,
"superProcessInstanceId": null,
"variables":
[
],
"tenantId": ""
}
Based on my understanding, I need to use the method IdentityService.setAuthenticatedUserId(name) so that the user is set correctly. Since I am using a custom authentication (as a Filter), how do I get access to IdentityService. Please let me know, if there is any other way to set this information.