07-18-2016 07:40 PM
TaskEntity taskEntity = (TaskEntity) taskService.newTask();
taskEntity.setCategory(…);
taskEntity.setDescription(…);
taskEntity.setDueDate(…);
taskEntity.setName(…);
taskEntity.setOwner(…);
taskEntity.setPriority(…);
taskEntity.setTenantId(…);
taskService.saveTask(taskEntity);
taskEntity.createVariablesLocal(… map with variable keys and values …);
org.activiti.engine.ActivitiException: lazy loading outside command context
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.ensureVariableInstancesInitialized(VariableScopeImpl.java:65)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:746)
07-19-2016 01:37 AM
org.activiti.engine.test.api.task.TaskServiceTest#testSaveTaskUpdate
in activiti source.07-19-2016 10:06 PM
07-20-2016 03:36 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.