01: package org.jbpm.context.exe.variableinstance;
02:
03: import org.jbpm.context.exe.VariableInstance;
04:
05: /**
06: * uses the cache in variable instance to store any object
07: * without persisting it.
08: */
09: public class UnpersistableInstance extends VariableInstance {
10:
11: private static final long serialVersionUID = 1L;
12:
13: public boolean isStorable(Object value) {
14: return true;
15: }
16:
17: protected Object getObject() {
18: return null;
19: }
20:
21: protected void setObject(Object value) {
22: }
23: }
|