MCPcopy Create free account
hub / github.com/chainjet/platform / afterCreateWorkflowAction

Function afterCreateWorkflowAction

libs/definitions/src/definition.ts:312–324  ·  view source on GitHub ↗

* Allows definitions to modify the workflow action entity after it is created

(
    workflowAction: WorkflowAction,
    integrationAction: IntegrationAction,
    accountCredential: AccountCredential | null,
    update: (data: Partial<WorkflowAction>) => Promise<WorkflowAction>,
  )

Source from the content-addressed store, hash-verified

310 * Allows definitions to modify the workflow action entity after it is created
311 */
312 async afterCreateWorkflowAction(
313 workflowAction: WorkflowAction,
314 integrationAction: IntegrationAction,
315 accountCredential: AccountCredential | null,
316 update: (data: Partial<WorkflowAction>) => Promise<WorkflowAction>,
317 ) {
318 await this._getOperationHookRes('afterCreate', integrationAction.key, [
319 workflowAction,
320 integrationAction,
321 accountCredential,
322 update,
323 ])
324 }
325
326 /**
327 * Allows definitions to modify the workflow action entity after it is updated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected