//sdk/com.adobe.express.embedsdk/WorkflowContext
abstract class WorkflowContext
Base class for all workflow contexts Provides common functionality for communicating with the active workflow.
| Name | Summary |
|---|---|
| Companion | object Companion |
| Name | Summary |
|---|---|
| instanceId | val instanceId: String Unique identifier for this workflow instance |
| Name | Summary |
|---|---|
| cleanupPendingCallback | open fun cleanupPendingCallback(action: MessageType) |
| clearContext | open fun clearContext() Cleanup method to unregister this context Should be called when the context is no longer needed |
| getDefaultResponse | abstract fun getDefaultResponse(action: MessageType): Any Returns default response values for various message types when asset is not loaded |
| handleResponse | open fun handleResponse(instanceId: String, requestId: String, responseData: Map<String, Any>) Handles response messages from the web component This should be called when a response message is received |
| onErrorCallBack | fun onErrorCallBack(errorData: CCEverywhereError) |