* Allows definitions to modify the workflow action entity before it is created
(
workflowAction: Partial<WorkflowAction>,
integrationAction: IntegrationAction,
accountCredential: AccountCredential | null,
)
| 206 | * Allows definitions to modify the workflow action entity before it is created |
| 207 | */ |
| 208 | async beforeCreateWorkflowAction( |
| 209 | workflowAction: Partial<WorkflowAction>, |
| 210 | integrationAction: IntegrationAction, |
| 211 | accountCredential: AccountCredential | null, |
| 212 | ): Promise<Partial<WorkflowAction>> { |
| 213 | const hookRes = await this._getOperationHookRes<Partial<WorkflowAction>>('beforeCreate', integrationAction.key, [ |
| 214 | workflowAction, |
| 215 | integrationAction, |
| 216 | accountCredential, |
| 217 | ]) |
| 218 | if (hookRes) { |
| 219 | return hookRes |
| 220 | } |
| 221 | return workflowAction |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Allows definitions to modify the workflow action entity before it is updated |
nothing calls this directly
no outgoing calls
no test coverage detected