/** * Test if the plan is waiting for a process element. */ public boolean isWaitingFor(Object procelem) { return RPlan.PlanProcessingState.WAITING.equals(getProcessingState()) && waitabstraction!=null && waitabstraction.isWaitingFor(procelem); }
/** * */ protected void dumpPlans() { if(plans!=null) { System.out.println("plans: "+plans.size()); System.out.println("--------"); for(RPlan plan: plans) { StringBuffer buf = new StringBuffer(); determineValid(plan, plan, buf); if(plan.aborted) System.out.println("aborted zombie plan: "+plan.getId()); System.out.println(buf.toString()); System.out.println(plan.getId()+" "+plan.getLifecycleState()+" "+plan.getProcessingState()); System.out.println("--------"); } } }
/** * */ protected void dumpPlans() { if(plans!=null) { System.out.println("plans: "+plans.size()); System.out.println("--------"); for(RPlan plan: plans) { StringBuffer buf = new StringBuffer(); determineValid(plan, plan, buf); if(plan.isFinishing()) System.out.println("aborted zombie plan: "+plan.getId()); System.out.println(buf.toString()); System.out.println(plan.getId()+" "+plan.getLifecycleState()+" "+plan.getProcessingState()); System.out.println("--------"); } } }
/** * Called before blocking the component thread. */ public void beforeBlock() { RPlan rplan = ExecutePlanStepAction.RPLANS.get(); testBodyAborted(rplan); ComponentSuspendable sus = ComponentSuspendable.COMSUPS.get(); if(rplan!=null && sus!=null && !RPlan.PlanProcessingState.WAITING.equals(rplan.getProcessingState())) { final ResumeCommand<Void> rescom = rplan.new ResumeCommand<Void>(sus, false); rplan.setProcessingState(PlanProcessingState.WAITING); rplan.resumecommand = rescom; } }
/** * Called before blocking the component thread. */ public void beforeBlock() { testBodyAborted(); ComponentSuspendable sus = ComponentSuspendable.COMSUPS.get(); if(sus!=null && !RPlan.PlanProcessingState.WAITING.equals(getProcessingState())) { final ResumeCommand<Void> rescom = new ResumeCommand<Void>(sus, false); setProcessingState(PlanProcessingState.WAITING); // System.out.println("setting rescom: "+getId()+" "+rescom); resumecommand = rescom; } }
if(RPlan.PlanProcessingState.WAITING.equals(rplan.getProcessingState())) System.out.println("Plan proc state invalid: "+rplan.getProcessingState());
if(PlanProcessingState.WAITING.equals(getProcessingState()))
boolean abort = args!=null && args.getAbort()!=null? args.getAbort().booleanValue(): sus!=null; if(notify && RPlan.PlanProcessingState.WAITING.equals(getProcessingState()))
if(PlanProcessingState.WAITING.equals(getProcessingState()))