Skip to content

Process methods: enable, pause

The Process Verbs enable, pause as typed SDK methods, with inputs, result, refusals and an example.

Reference for Process, one group of Process methods.

Process.enable

Enable turns a Process on for a Startup, so its Workflows start on their Triggers. Verb page.

TypeScript
interface ProcessVerbs {
  enable(input: ProcessEnableInput, options?: SB.CallOptions): SB.Call<Process>
}

Emits Process.enabled.

Inputs

InputTypeRequiredDescription
processProcessrequiredThe Process to turn on.

Returns

OutputTypeRequiredDescription
processProcessrequiredThe Process, now on.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const process = await $.Process.enable({ process: 'process_X2zteZ3CQI' })

Process.pause

Pause stops a Process from starting new Actions; Actions already in progress finish. Verb page.

TypeScript
interface ProcessVerbs {
  pause(input: ProcessPauseInput, options?: SB.CallOptions): SB.Call<Process>
}

Emits Process.paused.

Inputs

InputTypeRequiredDescription
processProcessrequiredThe Process to pause.

Returns

OutputTypeRequiredDescription
processProcessrequiredThe paused Process.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const process = await $.Process.pause({ process: 'process_X2zteZ3CQI' })