-
Notifications
You must be signed in to change notification settings - Fork 48
itoken
bpmn-server / IToken
- childrenTokens
- currentItem
- currentNode
- data
- dataPath
- execution
- firstItem
- id
- lastItem
- loop
- originItem
- parentToken
- path
- processId
- startNodeId
- status
- type
- appendData
- end
- error
- execute
- getChildrenTokens
- getFullPath
- getSubProcessToken
- goNext
- log
- preExecute
- preNext
- processError
- restored
- resume
- save
- signal
- stop
- terminate
• childrenTokens: Token
[]
• currentItem: IItem
• currentNode: any
• data: any
• dataPath: string
• execution: IExecution
• firstItem: Item
• id: any
• lastItem: IItem
• loop: any
• originItem: IItem
• Optional
parentToken: IToken
• path: IItem
[]
• processId: any
• startNodeId: any
• status: TOKEN_STATUS
• type: any
▸ appendData(inputData
, item
): void
Name | Type |
---|---|
inputData |
any |
item |
IItem |
void
▸ end(): Promise
<void
>
Promise
<void
>
▸ error(msg
): void
Name | Type |
---|---|
msg |
any |
void
▸ execute(inputData
): Promise
<any
>
this is the primary exectuion method for a token
Name | Type |
---|---|
inputData |
any |
Promise
<any
>
▸ getChildrenTokens(): any
[]
any
[]
▸ getFullPath(fullPath?
): Item
[]
Name | Type |
---|---|
fullPath? |
any |
Item
[]
▸ getSubProcessToken(): IToken
▸ goNext(): Promise
<void
>
Promise
<void
>
▸ log(...msg
): void
Name | Type |
---|---|
...msg |
any |
void
▸ preExecute(): Promise
<boolean
>
Promise
<boolean
>
▸ preNext(): Promise
<boolean
>
Promise
<boolean
>
▸ processError(): any
any
▸ restored(): void
void
▸ resume(): void
void
▸ save(): Object
Object
Name | Type |
---|---|
currentNode |
any |
dataPath |
string |
id |
any |
loopId |
any |
originItem |
any |
parentToken |
any |
startNodeId |
any |
status |
TOKEN_STATUS |
type |
any |
▸ signal(data
): Promise
<any
>
Name | Type |
---|---|
data |
any |
Promise
<any
>
▸ stop(): void
void
▸ terminate(): void
is called by Gateways to cancel current token
void