6 Replies Latest reply on Jun 7, 2010 4:53 AM by wawan_beta

    How to start a process with variable from JBPM-Console

    wawan_beta

      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?

      I deploy the business archive using an Ant script then run a process  instance via the jBPM console.

       

      example:

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <process name="test" xmlns="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>