Class: RoutineBuilder
Defined in: packages/sdk/src/workspace-builder/automation.ts:66
Extends
Constructors
Constructor
new RoutineBuilder(
name,cronSchedule?,options?):RoutineBuilder
Defined in: packages/sdk/src/workspace-builder/automation.ts:71
Parameters
name
string
cronSchedule?
string = ''
options?
AnyRecord = {}
Returns
RoutineBuilder
Overrides
WorkspaceBuilderResource.constructor
Properties
_created
_created:
boolean=false
Defined in: packages/sdk/src/workspace-builder/resource.ts:23
Inherited from
WorkspaceBuilderResource._created
_existed
_existed:
boolean=false
Defined in: packages/sdk/src/workspace-builder/resource.ts:24
Inherited from
WorkspaceBuilderResource._existed
_id?
optional_id:number
Defined in: packages/sdk/src/workspace-builder/resource.ts:21
Inherited from
_uuid?
optional_uuid:string
Defined in: packages/sdk/src/workspace-builder/resource.ts:22
Inherited from
WorkspaceBuilderResource._uuid
active
readonlyactive:boolean
Defined in: packages/sdk/src/workspace-builder/automation.ts:67
cronSchedule
readonlycronSchedule:string=''
Defined in: packages/sdk/src/workspace-builder/automation.ts:73
description
readonlydescription:string
Defined in: packages/sdk/src/workspace-builder/automation.ts:68
name
readonlyname:string
Defined in: packages/sdk/src/workspace-builder/automation.ts:72
rules
readonlyrules:RoutineRuleDraft[] =[]
Defined in: packages/sdk/src/workspace-builder/automation.ts:69
Accessors
id
Get Signature
get id():
number
Defined in: packages/sdk/src/workspace-builder/resource.ts:27
Server-assigned numeric id — available after apply() or adopt().
Returns
number
Inherited from
isImplicit
Get Signature
get isImplicit():
boolean
Defined in: packages/sdk/src/workspace-builder/resource.ts:53
True for resources the server creates on our behalf (currently a
journey's Start step). They are kept in the resource list so edges can
reference them, but they are never created, printed, or counted.
Returns
boolean
Inherited from
WorkspaceBuilderResource.isImplicit
uuid
Get Signature
get uuid():
string
Defined in: packages/sdk/src/workspace-builder/resource.ts:38
Server-assigned uuid — available after apply() or adopt().
Returns
string
Inherited from
Methods
addRule()
addRule(
actionType,options?):RoutineBuilder
Defined in: packages/sdk/src/workspace-builder/automation.ts:81
Parameters
actionType
string
options?
actionParams?
AnyRecord
memberFilter?
workflow?
Returns
RoutineBuilder
adopt()
adopt(
existing):void
Defined in: packages/sdk/src/workspace-builder/resource.ts:64
Parameters
existing
AnyRecord
Returns
void
Inherited from
WorkspaceBuilderResource.adopt
apply()
apply(
client):Promise<void>
Defined in: packages/sdk/src/workspace-builder/automation.ts:107
Parameters
client
Returns
Promise<void>
Overrides
WorkspaceBuilderResource.apply
matchKey()
matchKey():
string|undefined
Defined in: packages/sdk/src/workspace-builder/resource.ts:60
Returns
string | undefined
Inherited from
WorkspaceBuilderResource.matchKey
planLine()
planLine():
string
Defined in: packages/sdk/src/workspace-builder/automation.ts:98
Returns
string