I do not like this way :
https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example#comment-8244
int qnt = java.lang.Integer.parseInt(quantity);
if ( qnt > 1000)
isAvailable = false;
else
isAvailable = true;
kcontext.setVariable("isAvailable",isAvailable);
System.out.println("***After process order HT, Quantity: " +qnt +" isAvailable condition: " +isAvailable);
because the customers want the project could achive the function to allow them to decide which next taskNode that the process will go,In the User Interface,I will supply the options(show the next tasknodes) to user to choose,how can i achive, I need the code,forgive my poor english,thanks!!!