View Javadoc
1 package org.smartcomps.twister.engine.priv.messaging; 2 3 import org.dom4j.Document; 4 import org.smartcomps.twister.engine.exception.CorrelationViolationException; 5 import org.smartcomps.twister.engine.exception.ConflictingReceiveException; 6 import org.smartcomps.twister.engine.priv.core.dynamic.ReceiveEC; 7 8 /*** 9 * Controls message received by the engine, check if they are relevant 10 * to any process of process instance and if so do the appropriate thing 11 * to the appropriate activity or execution context.<br><br> 12 * The received message must have a root element named 'message' that 13 * contains all message parts. 14 */ 15 public interface MessageController { 16 17 /*** 18 * Processes provided message checking if an existing execution context is waiting 19 * for this message to complete or if this message can trigger the execution of a 20 * new process.<br> 21 * The received message must have a root element named 'message' that 22 * contains all message parts. 23 * @param partnerLink 24 * @param portType 25 * @param operation 26 * @param message 27 * @return Document reply to the message (everything fine or error) 28 */ 29 public ReceiveEC acknowledge(String partnerLink, String portType, String operation, Document message) throws CorrelationViolationException, ConflictingReceiveException; 30 31 }

This page was automatically generated by Maven