06-18-2014 07:24 AM
String processId = execution.getProcessInstanceId();
TaskService tkService = execution.getEngineServices().getTaskService();
List<Task> ltasks = tkService.createTaskQuery().processInstanceId(processId).list();
Task task = ltasks.get(0);
String taskId = task.getId();
TaskService taskService = execution.getEngineServices().getTaskService();
// Set local variable
taskService.setVariableLocal(taskId, "mobile", execution.getVariable("mobile"));
// throw Activiti Exception
throw new ActivitiException(error);
06-18-2014 10:44 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.