Consume Activity

The consume activity reads in a message sent to it by another business process. A consume element can contain a participant element. The participant element indicates which business process instances are relevant to the consume activity.

The following sample BPML code represents the simplest form of the consume activity. The activity reads in a message called EmployeeDataMessage, and then stores the message in process data.

<consume name=’ReceiveMessage’>
   <input message=’EmployeeDataMessage’>

The consume activity can also indicate that it will read a message only from a particular sending process, and store only parts of the received message in process data.