Preparing search index...
The search index is not available
Deepkit
Deepkit
workflow
Workflow
Class Workflow<T>
Type Parameters
T
extends
WorkflowPlaces
Hierarchy
Workflow
Index
Constructors
constructor
Properties
definition
events
state
Methods
apply
can
is
Done
Constructors
constructor
new
Workflow
<
T
>
(
definition
:
WorkflowDefinition
<
T
>
, state
:
WorkflowState
<
T
>
, eventDispatcher
:
EventDispatcher
, injector
:
InjectorContext
, stopwatch
?:
Stopwatch
)
:
Workflow
<
T
>
Type Parameters
T
extends
WorkflowPlaces
Parameters
definition:
WorkflowDefinition
<
T
>
state:
WorkflowState
<
T
>
eventDispatcher:
EventDispatcher
injector:
InjectorContext
Optional
stopwatch:
Stopwatch
Returns
Workflow
<
T
>
Properties
definition
definition
:
WorkflowDefinition
<
T
>
Protected
events
events
:
{
[
name
in
string
|
number
|
symbol
]
?:
Function
}
= {}
state
state
:
WorkflowState
<
T
>
Methods
apply
apply
<
K
>
(
nextState
:
K
, event
?:
ExtractClassType
<
T
[
K
]
>
)
:
Promise
<
void
>
Throws
WorkflowError when next state is not possible to apply.
Type Parameters
K
extends
string
|
number
|
symbol
Parameters
nextState:
K
Optional
event:
ExtractClassType
<
T
[
K
]
>
Returns
Promise
<
void
>
can
can
(
nextState
:
keyof
T
&
string
)
:
boolean
Parameters
nextState:
keyof
T
&
string
Returns
boolean
is
Done
is
Done
(
)
:
boolean
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Workflow
constructor
definition
events
state
apply
can
is
Done
Generated using
TypeDoc
Throws
WorkflowError when next state is not possible to apply.