09-08-2010 02:37 AM
09-08-2010 04:56 AM
09-08-2010 06:10 AM
The task id is unique per process definition. It is even unique for all the tasks ever created, even when you would run Activiti in a cluster.
So yes, you can use the task id to find the correct process instance for that specific vacaction request.
09-09-2010 03:56 AM
09-09-2010 11:37 PM
I wouldnt use the same id for the task and the vacation request. Rather, I would give the vacation request record a unique id, and store that reference as a process variable (note: I'm not storing the whole vacation request record as a process variable).
Then, if you need the vacation request record, you simply do:
String executionId = task.getExecutionId();
long vacationRequestId = runtimeService.getVariable(executionId, "vacactionRequestId");
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.