xAPPnow LOW CODE PLATFORM - User Manual 

Still no account yet?

×

BPMN Advanced Training: Send/Receive Task, Message Start Event

 
 
This low-code tutorial provides a tutorial for Process Comunication by Message to demonstrate the usage of a BPMN Send Task, Receive Task and Message Start Event.
 
Prerequisites:
A Message Definition Object must be created first. This element is available on Definition Object Model. Check this topic for more details: Base Definition Elements - Message Definition Object.
 
In this sample, an User Registration process starts a Registration Moderation process by a message and waits for the moderation results. Once the moderation is done, the user will receive the status of the registration requested and will be notified with the results to the User Registration process. It consists of 2-collaboration models, called "UserRegistration" and "RegistrationModeration", which execute the following process steps:
 
This low-code tutorial provides a tutorial for Process Comunication by Message to demonstrate the usage of a BPMN Send Task and Receive Task, additionally, are used a Message Start Event and a Message End Event. In this sample, an User Registration process starts a Registration Moderation process by a message and waits for the moderation results. Once the moderation is done, the user will receive an Email and the Registration Moderation process will notify the results to the User Registration process. It consists of 2-collaboration model, called "UserRegistration" and "RegistrationModeration", which execute the following process steps:
 
  • UserRegistration:
  • This process begins with a Request Registration, which is saved in a Registration Business Object named registration.
  • Then the process uses a Send Task "Start Moderation" to send the message "START_MODERATION" together with a Message Object as a payload, in this case is a “registration”.
  • The process waits at the Receive Task for a message "NOTIFY_REGISTRATION" from the "RegistrationModeration" process.
  • After receiving the message, the attributes of the related Message Object are displayed in the User Task "View Registration Result". In this User Task it possible to select if the process finish or begin again when the button Retry is selected.
     
  • RegistrationModeration:
  • The Message Start Event with the message “START_MODERATION” starts this process.
  • The attributes of the Registration Object, which was sent as a payload of this message, are displayed in a User Task "Moderate Registration" and the status of the registration can be update.
  • After the Registration is moderated an email is sent to the user in the Send Task “Send Notification E-Mail”.
  • The process ends with Message End Event, which send the message "NOTIFY_REGISTRATION", together with the Registration Object to the "UserRegistration".
 
The following screenshot displays the Send Task configuration of the "UserRegistration" Collaboration.
  • At first, the “Receiver Process Name” as to be specified in the Configuration Tab.
  • Based on the "Receiver Process" specification the available messages, to communicate with this process are selectable.
 
 
 
 
 
REMARK:
The Send Task configuration is possible after the related Receive Task or Message Start Events configured.
Based on the receiver configuration the process specific messages are selectable. Also the related message object is provided in the Data TAB for the message specific mapping.
Messages have to be defined in a Definition Object Model.
The configuration of a Message End Event and a Send Task is similar.
 
The following screen shot displays the Message Start Event configuration of the "RegistrationModeration" process.
  • The configuration of the Message Object is optional
 
 
REMARK:
The configuration of a Message Start Event and a Receive Task is similar.
 
The following screenshot displays the Send Task configuration of the "RegistrationModeration" Collaboration.
  • The first thing is to select as Type the E-Mail.
  • Then configure the E-Mail options.