05-21-2012 10:43 AM
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcess");
But I would like to see the process status on Activiti Explorer with the admin user (kermit).05-21-2012 06:57 PM
05-21-2012 10:04 PM
<startEvent id="request" activiti:initiator="initiator" />
The authenticated user must be set with the method BEFORE the process instance is started,try {
identityService.setAuthenticatedUserId("bono");
runtimeService.startProcessInstanceByKey("someProcessKey");
} finally {
identityService.setAuthenticatedUserId(null);
}
Then, you can refer the initiator(you can treat it as process owner) variable in the rest of process definiton:<userTask id="examine" name="examinePaper" activiti:assignee="${identity.findLeader(initiator)}">
</userTask>
05-22-2012 05:47 PM
05-23-2012 02:41 AM
05-23-2012 03:53 AM
06-03-2012 10:49 PM
06-06-2012 10:37 AM
06-06-2012 01:28 PM
06-06-2012 01:29 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.