04-27-2016 05:26 AM
processEngine.getTaskService().complete(taskId);
List<Task> tasks = processEngine.getTaskService().createTaskQuery()
.processVariableValueEquals(WfConst.ROOT_EXECUTION_ID, rootExecutionId)
.active()
.taskCandidateUser(username)
.list();
complete(taskId)
method. So result list is not full. Especially this happens when the UserTask ends with a CallActivity (creating a subprocess). So i never get the first task that belongs to this subprocess. But if i wait for some time (1-5 sec) in debugger and query again - the task is there and the list if full. Sometimes the query happens so early, that it is simply empty. What are my options on performing these two actions in one transaction? 05-02-2016 02:56 AM
05-02-2016 11:05 AM
05-03-2016 08:46 AM
05-04-2016 04:36 AM
05-10-2016 05:42 AM
05-13-2016 03:52 AM
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.