Dec 27, 2007

Setting Variables

For setting variables ContextInstance is required. ContextInstance maintains all the key-value pairs for a process instance.
We can get ContextInstance from Process Instance.
ContextInstance contextInstance = processInstance.getContextInstance ();
Variable can be set as mentioned below using ContextInstance obtained from processInstance.
contextInstance.setVariable (“Variable Name”, “Value”);


No comments:

Post a Comment