In a process, a Send Message event can be used to generate a message that is made available to all
Receive Message events (which are actively listening for messages). Messages sent to events that are not active (either paused, yet to be activated, passed in the process flow, or in an unpublished process model) are discarded.
NOTE: System administrators must configure JMS messaging to enable this feature.
|Process-to-process messaging is enabled by default for Appian Cloud sites.|
You can configure the Send Message Event to send messages from a process to any of the following:
|As a Messaging Best Practice, we recommending sending an event message to a specific process, since sending the message to a process model results in the message being sent to all processes created from that model.|
When you need to send a message to a specific process instance, follow this steps:
Datatab. Ensure that the Message Destination on the Setup tab is left blank
Valuefield for the DestinationProcessID mapping, enter process id that you want to send a message to. You can select a process variable or use an expression to specify the values you need to pass. Expressions allow you to specify values for both system types and complex types.
Optional Text field, type the information you want to include in the body of the message. This field allows you to specify data values using the Expression Editor, which can be read by expressions in the Receive Message event.
All active Receive Message Events within the process specified by DestinationProcessID are triggered by the Send Message Event. Messages sent through the Send Message event are only available to active Receive Message nodes in running processes. If no Receive Message events are active in the destination process model, the message sent is lost.
Click File > Save & Publish.
To target a specific Receive Message event within the process, complete the following:
Datatab of the
Edit Send Message Eventdialog box, create a new custom property by clicking
Edit Receive Message Eventdialog box for the target Receive Message Event.
Setuptab, click Import Custom Properties and import the custom mapping you created for the Send Message node.
To send a message to a receive message event, follow these steps:
All mappings that have been configured using events in process models to which you have at least
Editor level access can be reused by selecting this option.
To import mappings from a previously configured event:
Message Propertiesdialog box is displayed from which you can navigate through the Process Models navigation tree.
Apart from mappings, you can also enter additional text as part of the message that is generated. Additional text can be entered directly into the provided text, or it can be entered using the Expression Editor. Like email messages, in the message body you can specify key-value pairs and other text, which can then be extracted using the Expression Editor in a receive message event. Also, using the Expression Editor, you can use the insertquestions function to pose questions. Then the answers to these questions can be retrieved in a Receive Message event using the extractanswers function.
Text entered within a message body can be extracted using the extract function in the Expression Editor, which requires you to specify the text that is to be searched and the delimiters within the text. It returns all content enclosed within the delimiters in the text. The message body, can be referenced in the expression editor using the msg!body property. Other Expression Editor functions that facilitate information-transfer between events in a process model include: insertkey, insertkeyval, insertquestions, keyval, and extractanswers.
Note: Since the Send Message event is used to generate a message (and produce an action), it cannot be used to create an exception flow.
In addition to sending JMS messages from the Send Message Event node, you can send messages from an End Event or from an escalation.
To add a Send Message event to an End Event
Open the Configure End Event dialog box using one of two methods.
Click the Results tab.
Click the Send Message link. A Send Message row is added to the events list.
Type a name for the event in the Name column.
Click the Configure link in the Setup column. (This link changes to Edit, if the trigger was added previously.)
To send a message event from an escalation
On This Page