-
1. Re: jbpm variables not saved
apdo Dec 14, 2007 11:23 AM (in response to apdo)I continue my experimentation and here is my obervations.
using the following method to display the form I am able to set variable values. the form is open with these value however only the description is saved when submiting the form. I think it is more a seam issue or probably misunderstanding. I will probably post something related to this in the seam forum. I think we can consider this discussion close in the context of jbpm.
thanks,
@StartTask
public String displayForm() {
org.jboss.seam.bpm.BusinessProcess process = org.jboss.seam.bpm.BusinessProcess.instance();
org.jbpm.graph.exe.ProcessInstance pinstance = org.jboss.seam.bpm.ProcessInstance.instance();
org.jboss.seam.bpm.TaskInstance.instance().setVariable("variable1", "my comments");
pinstance.getContextInstance().createVariable("summary", "sum value");
System.out.println("APD displayForm called");
return "/todoform.xhtml";
} -
2. Re: jbpm variables not saved
pitcom Mar 5, 2008 5:38 AM (in response to apdo)Hi....
I was facing same problem of not saving 'Name' and 'Mapped Name' in jBPM..
During n...n number of tries, it saved for one instance of 'Name', but I could not figure it out - HOW.
Now I have solution ... !!!
After you type new name or a mapped name, press instead of any thing else.
enjoy jBPM...
Regards
Kamlesh Shah
pitcom@vsnl.com -
3. Re: jbpm variables not saved
pitcom Mar 5, 2008 5:41 AM (in response to apdo)Kamlesh again.....
oh..!!! I typed < e n t e r > but got vaniced.....
Please read my previous post with correction as ....
press enter instead of anything else
Regards
Kamlesh Shah
pitcom@vsnl.com -
4. Re: jbpm variables not saved
pitcom Mar 6, 2008 8:22 AM (in response to apdo)Press 'enter' as terminator for value you type in. It will be saved...
Good luck!!!!
Regards
Kamlesh Shah