Allows a business process to ignore messages received by a business process for a Control Receive node or a Client Request node (in positions in the business process other than at the Start node) before the process flow encounters the node at which the message is expected.
Business processes can include Control Receive or Client Request nodes, at which the process flow waits at run time for delivery of a message before continuing. By default, messages that arrive before they are expected—that is, before the business process encounters the Control Receive or Client Request node in the process flow—are buffered and are delivered when the process is ready to receive them (that is, when the Control Receive or Client Request node is encountered). You can design your process such that any such unexpected (early) messages are discarded. This enables the Control Receive and Client Request nodes to ignore messages that arrived and were buffered by the business process, but that are no longer relevant to the process. The jpd:unexpected-message annotation is available for Control Receive nodes and Client Request nodes in positions other than the Start node. This annotation gives you the ability to control this behavior on a node-by-node basis at design time.
To Specify the jpd:unexpected-message Annotation
/** * @jpd:unexpected-message action="discard" */