Produce Activity

The produce activity sends a message to another business process.

In the following sample BPML code, a message called EmployeeDataMessage is sent to a business process instance created by the spawn activity. The assign elements write the name and social security number of an employee into the message. Note the significance of the name of the message; the spawned instance looks for a message with exactly that name.

<produce name=’SendMessage’>
   <participant name=’AnotherProcess’/>
   <output message=’EmployeeDataMessage’>
      assign to=’EmployeeName’>David</assign>
      assign to=’SocialSecurityNumber’>123-45-6789</assign>