Introduction
The Workflow Activity Callbacks are a set of pre-built utility functions available in the SDK that may be triggered by a user interaction (button etc) or initiated during the execution of a business workflow activity.
These functions are used to gather data or provide feedback to the user, handle errors, and perform other tasks.
NoteThese functions do not provide any UI elements or functionality.
The developer must implement the UI elements and functionality themselves. (examples included)
Available User Activity based Callbacks
- Single Line Activity
- Option Activity
- Date Time Activity
- Credit Card Activity
- Address Activity
- Amount Activity
- Multi-Line Activity
- Camera Activity
Operation Started/Completed
Irrespective of the activity, these event handlers may be implimented to handle the start and end of an operation, such as showing or hiding a progress indicator.
Example Code:
operationStarted: async (data) => {
console.log("Operation Started:", data);
// Display a loading indicator
},
operationCompleted: async (data) => {
console.log("Operation Completed:", data);
// Hide the loading indicator
}