} else {
if (oldValue.equals(value)) {
return;
}
}
ProcessEventSupport processEventSupport = ((InternalProcessRuntime) getProcessInstance()
.getKnowledgeRuntime().getProcessRuntime()).getProcessEventSupport();
processEventSupport.fireBeforeVariableChanged(
(variableIdPrefix == null ? "" : variableIdPrefix + ":") + name,
(variableInstanceIdPrefix == null? "" : variableInstanceIdPrefix + ":") + name,
oldValue, value, getProcessInstance(),
getProcessInstance().getKnowledgeRuntime());
internalSetVariable(name, value);
processEventSupport.fireAfterVariableChanged(
(variableIdPrefix == null ? "" : variableIdPrefix + ":") + name,
(variableInstanceIdPrefix == null? "" : variableInstanceIdPrefix + ":") + name,
oldValue, value, getProcessInstance(),
getProcessInstance().getKnowledgeRuntime());
}