Documentation
Preparing search index...
@saltcorn/types
model-abstracts/abstract_workflow
AbstractWorkflow
Interface AbstractWorkflow
interface
AbstractWorkflow
{
__
:
any
;
action
?:
string
;
autoSave
?:
boolean
;
onDone
:
(
arg0
:
any
)
=>
any
;
prepareForm
:
(
form
:
any
)
=>
Promise
<
void
>
;
previewURL
?:
string
;
run
:
(
body
:
any
,
req
:
any
)
=>
Promise
<
RunResult
|
undefined
>
;
runStep
:
(
context
:
any
,
stepIx
:
number
)
=>
Promise
<
RunResult
|
undefined
>
;
saveURL
?:
string
;
singleStepForm
:
(
body
:
any
,
req
:
any
)
=>
Promise
<
RunResult
|
undefined
>
;
startAtStepURL
?:
(
stepName
:
string
)
=>
string
;
steps
:
any
[]
;
title
:
(
step
:
any
,
stepIx
:
number
)
=>
string
;
}
Implemented by
Workflow
Index
Properties
__
action?
auto
Save?
on
Done
prepare
Form
preview
URL?
run
run
Step
save
URL?
single
Step
Form
start
At
Step
URL?
steps
title
Properties
__
__
:
any
Optional
action
action
?:
string
Optional
auto
Save
autoSave
?:
boolean
on
Done
onDone
:
(
arg0
:
any
)
=>
any
prepare
Form
prepareForm
:
(
form
:
any
)
=>
Promise
<
void
>
Optional
preview
URL
previewURL
?:
string
run
run
:
(
body
:
any
,
req
:
any
)
=>
Promise
<
RunResult
|
undefined
>
run
Step
runStep
:
(
context
:
any
,
stepIx
:
number
)
=>
Promise
<
RunResult
|
undefined
>
Optional
save
URL
saveURL
?:
string
single
Step
Form
singleStepForm
:
(
body
:
any
,
req
:
any
)
=>
Promise
<
RunResult
|
undefined
>
Optional
start
At
Step
URL
startAtStepURL
?:
(
stepName
:
string
)
=>
string
steps
steps
:
any
[]
title
title
:
(
step
:
any
,
stepIx
:
number
)
=>
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
__
action
auto
Save
on
Done
prepare
Form
preview
URL
run
run
Step
save
URL
single
Step
Form
start
At
Step
URL
steps
title
Documentation
Loading...