体验新版 GitCode,发现更多精彩内容 >>
package org.activiti5.examples.variables;
import org.activiti.engine.delegate.DelegateExecution; import org.activiti.engine.delegate.JavaDelegate;
public class ChangeVariableType implements JavaDelegate {
public void execute(DelegateExecution execution) {
// Initially set to null, stored as NullType execution.setVariable("myVar", null); // Now set to something stored as SerializableType. This could happen much later on than this. execution.setVariable("myVar", new SomeSerializable("someValue")); } }