Development
Define the logic of what needs to happen when your action is activated
hello
the onActivityCreated function has been deprecated as of September 1, 2024. Please use the onEvent function.
The onActivityCreated
function is called whenever orchestration or design (preview) activates a Custom Action. It will publish a message that is received by the extension server, which automatically finds the right Custom Action and calls the onActivityCreated
function defined in that action.
The onActivityCreated
function has a couple of parameters that will be useful when developing an extension:
onComplete
or onError
function.01
The payload allows you to access the values of your extension settings, action fields, and patient data.
01
The onComplete
callback can be called to confirm your activity has been completed and can be called with the following (optional) parameters:
01
The onError
callback can be called to let Awell know something went wrong with running your extension code. However, the activity will still be completed.
The function can be called with the following (optional) parameter:
01