ActivityDefinition
ActivityDefinition
ActivityDefinitions are used by the DSF to advertise which processes are available at any given instance and who is allowed to request and who is allowed to execute a process. The DSF defined elements for this purpose in the dsf-activity-definition profile.
The most important elements in ActivityDefinitions are:
message-name
task-profile
requester
recipient
The message-name
element contains the name of the BPMN message start event or BPMN message intermediate catching event which expects a Task resource complying to the profile defined by task-profile
.
The requester
and recipient
elements define the organisation(s) or person(s) who are allowed to request or receive the message specified by message-name
. The receiving DSF instance is the one who will execute the process connected to the message. A list of examples for all possible requester
and recipient
elements is located here.
Creating ActivityDefinitions is part of developing a process plugin. Readers fluent in understanding XML FHIR definitions and translating them into resources may take a look at the DSF's profile for ActivityDefinitions here. ActivityDefinitions also reference other resource definitions. Depending on the resource they are located in one of these folders. There is also the guide on creating ActivityDefinitions for more in-depth information.