3 Replies Latest reply on Jul 2, 2007 9:13 AM by riket44

    How to use defined variables

    riket44

      Hi,

      I define some variable in a task node like that :

       <start-state name="Envoyer la demande">
       <task name="Envoyer form">
       <controller>
       <variable name="Produit" access="read,write,required" ></variable>
       <variable name="Quantite" access="read,write,required" ></variable>
       <variable name="Raison" access="read,write" ></variable>
       </controller>
       </task>
       <transition name="Envoye" to="Recevoir la demande"></transition>
       </start-state>
      


      Later in my process, I've got a decision node with a Decision Handler, in my Handler, I want to use the variable named "Produit". How is it possible ?

      Thanks

        • 1. Re: How to use defined variables
          riket44

          Hmm in reading my post, I think it's not very clear :)

          I want to use the variable :

          <variable name="Produit" access="read,write,required" ></variable>
          


          In a decisionHandler to do a mySQL request like this :
          String request = "SELECT * FROM table WHERE id="+ the variable +";";


          • 2. Re: How to use defined variables
            kukeltje

            Your original post is very clear. Just look at docs, the testcases and examples.... no need to do it like this, just use the api

            • 3. Re: How to use defined variables
              riket44

              Yes, but I don't understand when the variables are not defined... The examples are all different. I'll try with executionContect.getVariable("varName") ;)

              Thank you Kukeltje