return processEngine;
}
@Override
public void updateContext(ProcessInstance processInstance) {
ExecutionService es = getProcessEngine().getExecutionService();
for (ProcessInstanceAttribute pia : processInstance.getProcessAttributes()) {
if (pia instanceof BpmVariable) {
BpmVariable bpmVar = (BpmVariable) pia;
if (hasText(bpmVar.getBpmVariableName())) {
es.setVariable(processInstance.getInternalId(), bpmVar.getBpmVariableName(), bpmVar.getBpmVariableValue());
}
}
}
}