07-05-2012 03:04 AM
public void createVariableLocal(String variableName, Object value) {
ensureVariableInstancesInitialized();
if (variableInstances.containsKey(variableName)) {
throw new ActivitiException("variable '" + variableName
+ "' already exists. Use setVariableLocal if you want to overwrite the value");
}
VariableTypes variableTypes = Context.getProcessEngineConfiguration().getVariableTypes();
VariableType type = variableTypes.findVariableType(value);
// ***** First call to VariableType.setValue() from inside here
VariableInstanceEntity variableInstance = VariableInstanceEntity.createAndInsert(variableName, type, value);
initializeVariableInstanceBackPointer(variableInstance);
variableInstances.put(variableName, variableInstance);
// ***** Second call to VariableType.setValue() from inside here
setVariableInstanceValue(value, variableInstance);
}
07-05-2012 03:29 AM
07-05-2012 03:54 AM
07-05-2012 05:14 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.