Java Code Examples for org.activiti.engine.impl.persistence.entity.TaskEntity#setTransientVariablesLocal()
The following examples show how to use
org.activiti.engine.impl.persistence.entity.TaskEntity#setTransientVariablesLocal() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompleteTaskCmd.java From flowable-engine with Apache License 2.0 | 6 votes |
@Override protected Void execute(CommandContext commandContext, TaskEntity task) { if (variables != null) { if (localScope) { task.setVariablesLocal(variables); } else if (task.getExecutionId() != null) { task.setExecutionVariables(variables); } else { task.setVariables(variables); } } if (transientVariables != null) { if (localScope) { task.setTransientVariablesLocal(transientVariables); } else { task.setTransientVariables(transientVariables); } } task.complete(variables, localScope, true); return null; }
Example 2
Source File: CompleteTaskCmd.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
protected Void execute(CommandContext commandContext, TaskEntity task) { // Backwards compatibility if (task.getProcessDefinitionId() != null) { if (Activiti5Util.isActiviti5ProcessDefinitionId(commandContext, task.getProcessDefinitionId())) { Activiti5CompatibilityHandler activiti5CompatibilityHandler = Activiti5Util.getActiviti5CompatibilityHandler(); activiti5CompatibilityHandler.completeTask(task, variables, localScope); return null; } } if (variables != null) { if (localScope) { task.setVariablesLocal(variables); } else if (task.getExecutionId() != null) { task.setExecutionVariables(variables); } else { task.setVariables(variables); } } if (transientVariables != null) { if (localScope) { task.setTransientVariablesLocal(transientVariables); } else { task.setTransientVariables(transientVariables); } } executeTaskComplete(commandContext, task, variables, localScope); return null; }