/** * dispatches to each of the participant * contained in this composite */ public Object dispatch (final ApplicationContext context, final WorkItem wi) throws DispatchingException { log.debug("dispatch() composite dspatching"); Object result = null; final java.util.Iterator it = this.participants.iterator(); while (it.hasNext()) { final Participant p = (Participant)it.next(); result = p.dispatch(context, wi); } return result; }
/** * Does the job of regular (not 'else-ref' based dispatching). */ protected void dispatch (final Participant participant, final String participantName, final InFlowWorkItem wi) throws ApplyException, DispatchingException { // identify participant name wi.setParticipantName(participantName); // dispatch participant.dispatch(context(), wi); }
final Object o = participant.dispatch(getContext(), li);
public Object dispatch (final ApplicationContext context, final WorkItem wi) throws DispatchingException { //final Participant targetParticipant = getParticipantMap() // .get(this.target); final Participant targetParticipant = Definitions.getParticipantMap(context).get(this.target); if (log.isDebugEnabled()) log.debug("dispatch() ref to '"+targetParticipant.getRegex()+"'"); if (wi instanceof InFlowWorkItem) { ((InFlowWorkItem)wi) .setParticipantName(targetParticipant.getRegex()); } return targetParticipant.dispatch(context, wi); }
private void bounce (final InFlowWorkItem wi) throws StoreException { log.debug("bounce() boucing back "+wi.getLastExpressionId()); final String engineId = wi.getLastExpressionId().getEngineId(); final Participant pEngine = openwfe.org.engine.Definitions .getParticipantMap (((openwfe.org.Service)getStore()).getContext()) .get(engineId); try { pEngine.dispatch(getContext(), wi); } catch (final Exception e) { throw new StoreException ("Failed bounce slave correlated workitem", e); } log.debug("bounce() bounced "+wi.getLastExpressionId()); }
participant.dispatch(context(), ci);
p.dispatch(getContext(), wi);
parentEngine.dispatch(getContext(), wi);
p.dispatch(getContext(), wi);
p.dispatch(this.applicationContext, wi);