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

    How to start a process with variable from JBPM-Console

    Wladimir Lavrov Newbie

      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.




      <?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"/>


        <task assignee="alex" form="org/bew/prozess/test.ftl" g="168,414,190,80" name="ask name">
            <transition to="send email"/>


        <mail g="387,32,179,80" language="juel" name="send email">
        <to addresses=${email}/>              
        <text>Hallo ${userName}</text>
            <transition g="-76,-18" name="to EndEvent_1" to="EndEvent_1"/>

        <end g="676,38,48,48" name="EndEvent_1"/>








      <form action="${form.action}" method="POST" enctype="multipart/form-data">

      Your Name: <input type="text" name="userName"/><br/>



      <input type="submit" name="Done"/>