/** * The body method is called on the * instatiated plan instance from the scheduler. */ public void body() { CMSSearchComponents sa = new CMSSearchComponents(); sa.setComponentDescription((IComponentDescription)getParameter("description").getValue()); sa.setSearchConstraints((ISearchConstraints)getParameter("constraints").getValue()); sa.setRemote(getParameter("remote").getValue()!=null? ((Boolean)getParameter("remote").getValue()).booleanValue(): false); IGoal req = createGoal("rp_initiate"); req.getParameter("receiver").setValue(getParameter("cms").getValue()); req.getParameter("action").setValue(sa); req.getParameter("ontology").setValue(SFipa.COMPONENT_MANAGEMENT_ONTOLOGY_NAME); dispatchSubgoalAndWait(req); getParameterSet("result").addValues(((CMSSearchComponents)((Done)req.getParameter("result") .getValue()).getAction()).getComponentDescriptions()); } }