25.3.6 Notifying Workflow of Data Changes
Notify a waiting workflow about data changes with events an automation processes periodically.
After their initial approval, your Procedure Lifecycle workflow automates previously manual steps performed as medical procedures progress through the clinic. It accomplishes this by reacting to changes in the procedure status or schedule.
To notify the workflow of data changes, you use a combination of a database trigger to log patient procedure lifecycle events, and an automation to periodically process the logged events. As the automation processes any events, it notifies the workflow of data changes by signaling the Wait activity to continue.
- Understanding Lifecycle Event Strategy
Log procedure lifecycle events in a trigger and process them on a schedule with an automation. - Simplifying Event Management
Define a package API that lets the trigger add events and the automation process them. - Adding Events Using a Trigger
Use a trigger to log status or schedule changes as lifecycle events. - Processing Events with an Automation
Use an automation to process queued lifecycle events on a schedule. - Continuing a Waiting Lifecycle Workflow
Continue the waiting workflow activity and pass the event type into a workflow variable.
Parent topic: Automating Business Entity Lifecycle Logic