/** * The body method is called on the * instatiated plan instance from the scheduler. */ public void body() { DFModify mo = (DFModify)getParameter("action").getValue(); IGoal reg = createGoal("df_modify"); reg.getParameter("description").setValue(mo.getComponentDescription()); dispatchSubgoalAndWait(reg); mo.setResult((IDFComponentDescription)reg.getParameter("result").getValue()); getParameter("result").setValue(new Done(mo)); } }