JBoss Community

jBPM5 Process Variables

created by Mylos Kathos in jBPM - View the full discussion

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

ksession.startProcess("com.graph.process1",inputParams);

 

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 ?

Thanks

Mylos

Reply to this message by going to Community

Start a new discussion in jBPM at Community