hi,
i'm using a decision node via a DefinitionHandler and this is the code
package com.sample.action; import org.jbpm.context.exe.ContextInstance; import org.jbpm.graph.exe.ExecutionContext; import org.jbpm.graph.node.DecisionHandler; public class Istrue implements DecisionHandler { public String decide(ExecutionContext executionContext) throws Exception { String message= null; executionContext.getContextInstance().setVariable("message", message); Object object=new Object(); object=executionContext.getVariable("Avis_DJ_hypo"); //Nom it s a context variable if(object.toString().equals("yes")) return "Oui"; else return "Non"; } }
<decision name="decision1"> <handler class= "com.sample.action.Istrue"/> <transition name="Non" to="Rejet du dossier par DJ"></transition> <transition name="Oui" to="Montage du dossier et mettre sous GED (Ag)"></transition> </decision>
Error completing task: An exception of type "org.jbpm.graph.def.DelegationException" was thrown.
*always* show the full stacktrace