2 Replies Latest reply on Jul 25, 2012 9:31 AM by Mylos Kathos

    jBPM5 Process Variables

    Mylos Kathos Master

      Hi all,

      I'm trying to migrate a process which was build on jBPM3 with the new jBPM5.

      I have an old decision node which I have turned into a Gateway, adding into it (using Eclipse jBPM plugin) the constraint:


      return workorder > 100;


      Now I'm trying to start the process using


      Map<String, Object> inputParams = new HashMap<String, Object>();

      inputParams.put("workorder", new Long(1500));


      // start a new process instance



      However at runtime I get the following error


      Could not find variable 'workorder' for action 'return workorder <= 100;' : org.drools.lang.descr.ProcessDescr@36527f

      How can I reference a startup process variable in the Gateway constraint ?