Chord
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
|
|
private |
__currentFn: * |
|
private |
__doneFns: * |
|
private |
__fns: * |
|
private |
__readyState: * |
Method Summary
Public Methods | ||
public |
addStep(step: *) |
|
public |
failStep(step: *) |
|
public |
finishStep(step: *, stepNum: *, opt_error: *) |
|
public |
getCurrentFn(): * |
|
public |
|
|
public |
hasNextStep(): * |
|
public |
isFinished(): * |
|
public |
isLastStep(): * |
Private Methods | ||
private |
__doStep(step: *) |
|
private |
|
|
private |
__handleError(step: *, error: *) |
Inherited Summary
From class Base | ||
private |
|
|
private |
|
|
private |
__parentFlow: * |
|
private |
__readyState: * |
|
private |
__state: * |
|
public |
autoLinkChildFlows(enabled: *) |
|
public |
failStep(step: *) |
|
public |
finish() |
|
public |
getState(opt_key: *, opt_value: *): * |
|
public |
|
|
public |
isFailed(): * |
|
public |
isFinished(): * |
|
public |
isStarted(): * |
|
public |
linkToParentState(parentFlow: *) |
|
public |
on(event: *, cb: *): * |
|
public |
onOnce(event: *, cb: *): * |
|
public |
setState(nextState: *): * |
|
public |
start() |
|
public |
watch(cb: *): * |
|
public |
watchOnce(cb: *): * |
|
private |
__doStep(step: *) |
|
private |
__emit(stepStatus: *, opt_event: *, opt_step: *) |
|
private |
__handleError(step: *, error: *) |
Public Constructors
Public Methods
public addStep(step: *) source
Params:
Name | Type | Attribute | Description |
step | * |
public finishStep(step: *, stepNum: *, opt_error: *) source
Params:
Name | Type | Attribute | Description |
step | * | ||
stepNum | * | ||
opt_error | * |
Private Methods
private __gotoNextStep() source
private __handleError(step: *, error: *) source
Override:
Base#__handleErrorParams:
Name | Type | Attribute | Description |
step | * | ||
error | * |