com.groiss.wfxml
Interface OutgoingMessageModifier


public interface OutgoingMessageModifier

Use this interface if you want to modify automatically generated outgoing PIStateChangedMessage messages before they are sent. If you want to listen for incoming messages, implement the MessageListener interface instead.


Method Summary
 boolean beforeSend(PIStateChangedMessage request, ProcessInstance pi)
          Implement this method to modify automatically generated outgoing PIStateChangedMessage messages before they are sent.
 

Method Detail

beforeSend

boolean beforeSend(PIStateChangedMessage request,
                   ProcessInstance pi)
Implement this method to modify automatically generated outgoing PIStateChangedMessage messages before they are sent. By returning false you can even prevent the message from being sent at all.

Parameters:
request - The PIStateChangedMessage request message that will be sent to a partner. You can modify the message (e.g., add additional parameters...).
pi - The process instance which changed its state.
Returns:
The return value indicates whether you agree to send the message or not. Usually you will return true (means: yes, send the message) here, so that the process instance observer can retrieve the expected answer which it is waiting for.


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.