Messaging
Messaging
BPMN does not provide an implementation for its messaging model, nor does the Business Process Engines the DSF is currently built upon. The DSF implements messaging through FHIR Task resources. Sending a message is thus equivalent to making an HTTP POST request including a Task resource to another (DSF) FHIR server. This step is done by the DSF automatically if the required prerequisites are met.
Messaging Prerequisites
After modelling communication using BPMN message elements, the DSF will create a Task resource based on the field injection values profile, messageName and instantiatesCanonical of the BPMN message element and the additional input parameters provided by the activity's getAdditionalInputParameters method. The Task is then sent to the recipient specified by the Target instance set in the current process execution as a process variable.