[jboss-user] [jBPM] - How to start a process with variable from JBPM-Console
Wladimir Lavrov
do-not-reply at jboss.com
Tue Jun 1 06:44:36 EDT 2010
Wladimir Lavrov [http://community.jboss.org/people/wawan_beta] created the discussion
"How to start a process with variable from JBPM-Console"
To view the discussion, visit: http://community.jboss.org/message/545594#545594
--------------------------------------------------------------
I want to start the process with user forms and I need to declare global variables so as to continue working with them, how to do this?
example:
<?xml version="1.0" encoding="UTF-8"?>
<process name="test" xmlns=" http://jbpm.org/4.3/jpdl http://jbpm.org/4.3/jpdl">
<start g="29,490,48,48" name="StartEvent_1">
<transition to="ask name"/>
</start>
<task assignee="alex" form="org/bew/prozess/test.ftl" g="168,414,190,80" name="ask name">
<transition to="send email"/>
</task>
<mail g="387,32,179,80" language="juel" name="send email">
<to addresses=${email}/>
<subject>${subject}</subject>
<text>Hallo ${userName}</text>
<transition g="-76,-18" name="to EndEvent_1" to="EndEvent_1"/>
</mail>
<end g="676,38,48,48" name="EndEvent_1"/>
</process>
test.ftl
<html><body>
<form action="${form.action}" method="POST" enctype="multipart/form-data">
<h3>Hallo</h3>
Your Name: <input type="text" name="userName"/><br/>
<hr>
<br/><br/>
<input type="submit" name="Done"/>
</form></body></html>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545594#545594]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100601/85849d05/attachment.html
More information about the jboss-user
mailing list