Modeling message events

Use a message event to represent a point in your process where an incoming message is received or where an outgoing message is sent.

Prerequisite: To model message events, you must be in the Process Designer desktop editor.

Incoming messages can originate from a message event in a process, from starting an undercover agent (UCA) in a service, from a Service Component Architecture (SCA) service, from a web service that you create, or from a message that you post to the JMS Listener. If you want to create web services to initiate inbound requests from external systems, see Publishing IBM Business Process Manager web services.

If you want to post a message to the JMS Listener, the Event Manager has a defined XML message structure that it must receive from an external system. For more information about the required message structure, see Posting a message to IBM Business Process Manager Event Manager.

Outgoing messages can be received by a message event in a process, can be sent to call an external service, or can be received by the start event in another process or processes. To learn how to configure message events to send messages, see Using intermediate message events and message end events to send messages.

You can include the following types of message events in your BPDs:

Table 1. Available types of message events
Event type Implementation When to use
Start event Message that is configured to receive (Start events can only receive messages) Use to model the start of a process if you want an incoming message event to kick off the process. A BPD can include more than one start message event.

Use as the start event for an event subprocess when you want the event subprocess to be triggered upon receipt of a message.

Intermediate event Message that is configured to receive Use to receive a message event. Intermediate events can be attached to activities within your BPDs or they can be included in the process flow, which is connected with sequence flows. An intermediate event that is attached to an activity, rather than the swimlane, is known as a boundary event. Boundary events can optionally either interrupt and complete the activity, or be triggered repeatedly.
Intermediate event Message that is configured to send Use to send a message event. Intermediate events can be included in the process flow, which is connected with sequence flows.
End event Message that is configured to send (End events can only send messages) Use to send a message event at the end of a path.

When you create a message event, you can cut and paste or copy and paste that message event within the same BPD or from one BPD into another BPD. A message can cause a process instance to be created, and can be received by a running process that contains one or more appropriate message events.

Before you include any type of message event that uses an undercover agent as the triggering mechanism, you should be aware of the following: