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

Function beforeCreateWorkflowAction

libs/definitions/src/definition.ts:208–222  ·  view source on GitHub ↗

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

(
    workflowAction: Partial<WorkflowAction>,
    integrationAction: IntegrationAction,
    accountCredential: AccountCredential | null,
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected