Hi,
I'm implementing a DecisionHandler for a workflow definition.
The class should act just as a demonstrator and is really simple.
@Name("bpm.patientRegisterGoalHandler") @Interceptors(SeamInterceptor.class) public class PatientRegisterGoalHandler implements DecisionHandler{ @In(value="registryData", create=true) private RegistryData data; public PatientRegisterGoalHandler() { log.debug("===== PatientenRegisterGoalHandler constructor"); } public String decide(ExecutionContext arg0) throws Exception { log.debug("===== PatientRegisterGoalHandler decide called"); log.debug("RegistryData: "+data); if (data.getCountPatient()>10) return "true"; return "false"; } }
14:32:04,808 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters() registerPatients -> name [1] 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] ===== PatientenRegisterGoalHandler constructor 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] ===== PatientRegisterGoalHandler decide called 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] RegistryData: null