-
1. Re: haw to get variable
kukeltje Apr 23, 2006 4:14 AM (in response to infmas)could you describe what you tried and what did not work. There are so many examples, testcases and documentation for this that you probably have used all these to achieve your goals.
-
2. Re: haw to get variable
tansdale Apr 23, 2006 9:08 PM (in response to infmas)the above man is ture there are many way cant do this. i just give u a example about how to deal with context in jbpm.
///////
// get tha contextinstance from pi;
ContextInstance contextInstance =
processInstance.getContextInstance();
// set var named "amount";
contextInstance.setVariable("amount", new Integer(500));
//get the "amount" var from context;
assertEquals(new Integer(500),
contextInstance.getVariable("amount"));
/////// -
3. Re: haw to get variable
infmas Apr 24, 2006 3:34 AM (in response to infmas)thanks for replay,
I need to extract a variable from the process which is a primary key of a table and to post contained table (the variable was set by an ather user).
I use an action on a button and not an action on a node .