Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
|
|
private |
|
|
private |
__parentFlow: * |
|
private |
__readyState: * |
|
private |
__state: * |
Method Summary
Public Methods | ||
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 Methods | ||
private |
__doStep(step: *) |
|
private |
__emit(stepStatus: *, opt_event: *, opt_step: *) |
|
private |
__handleError(step: *, error: *) |
Public Constructors
public constructor() source
Private Members
private __parentFlow: * source
private __readyState: * source
private __state: * source
Public Methods
public autoLinkChildFlows(enabled: *) source
Params:
Name | Type | Attribute | Description |
enabled | * |
public failStep(step: *) source
Params:
Name | Type | Attribute | Description |
step | * |
public finish() source
public getState(opt_key: *, opt_value: *): * source
Params:
Name | Type | Attribute | Description |
opt_key | * | ||
opt_value | * |
Return:
* |
public gotoNextStep() source
public linkToParentState(parentFlow: *) source
Params:
Name | Type | Attribute | Description |
parentFlow | * |
public onOnce(event: *, cb: *): * source
Params:
Name | Type | Attribute | Description |
event | * | ||
cb | * |
Return:
* |
public start() source
Private Methods
private __doStep(step: *) source
Params:
Name | Type | Attribute | Description |
step | * |
private __emit(stepStatus: *, opt_event: *, opt_step: *) source
Params:
Name | Type | Attribute | Description |
stepStatus | * | ||
opt_event | * | ||
opt_step | * |
private __handleError(step: *, error: *) source
Params:
Name | Type | Attribute | Description |
step | * | ||
error | * |