Anchorage API reference
Documentation
GitHub
Preparing search index...
@proofoftech/flowsafe
agent-host
createWorkflowRemoteStepPreRoute
Function createWorkflowRemoteStepPreRoute
createWorkflowRemoteStepPreRoute
(
journal
:
WorkflowRemoteStepDispatchReader
,
dispatch
:
WorkflowDispatchPort
,
)
:
(
request
:
Request
,
env
:
FlowsafeWorkerEnv
,
ctx
:
FlowsafeWorkerContext
,
kit
:
{
authorizePrivateWorkflowDispatch
:
(
request
:
Request
,
)
=>
Promise
<
Response
|
undefined
>
;
contextForStoredInvocation
:
(
journal
:
{
deploymentId
:
string
;
get
:
(
invocationId
:
string
,
)
=>
Promise
<
|
{
deploymentId
:
string
;
invocationId
:
string
;
principal
:
ExecutionPrincipal
;
tablePrefix
:
string
;
}
|
undefined
,
>
;
tablePrefix
:
string
;
}
,
invocationId
:
string
,
)
=>
Promise
<
ActorContext
|
undefined
>
;
contextForStoredWorkflowInvocation
:
(
journal
:
{
deploymentId
:
string
;
getWorkflow
:
(
invocationId
:
string
,
)
=>
Promise
<
|
{
deploymentId
:
string
;
invocationId
:
string
;
principal
:
ExecutionPrincipal
;
tablePrefix
:
string
;
}
|
undefined
,
>
;
tablePrefix
:
string
;
}
,
invocationId
:
string
,
)
=>
Promise
<
ActorContext
|
undefined
>
;
contextForStoredWorkflowStart
:
(
workflowId
:
string
,
runId
:
string
,
)
=>
Promise
<
ActorContext
|
undefined
>
;
resolve
:
ActorResolver
;
topology
:
DoRunRemoteStepTopology
;
}
,
)
=>
Promise
<
Response
|
null
>
A host mounts this route through preRoutes on its private state-script Worker.
Parameters
journal
:
WorkflowRemoteStepDispatchReader
dispatch
:
WorkflowDispatchPort
Returns
(
request
:
Request
,
env
:
FlowsafeWorkerEnv
,
ctx
:
FlowsafeWorkerContext
,
kit
:
{
authorizePrivateWorkflowDispatch
:
(
request
:
Request
,
)
=>
Promise
<
Response
|
undefined
>
;
contextForStoredInvocation
:
(
journal
:
{
deploymentId
:
string
;
get
:
(
invocationId
:
string
,
)
=>
Promise
<
|
{
deploymentId
:
string
;
invocationId
:
string
;
principal
:
ExecutionPrincipal
;
tablePrefix
:
string
;
}
|
undefined
,
>
;
tablePrefix
:
string
;
}
,
invocationId
:
string
,
)
=>
Promise
<
ActorContext
|
undefined
>
;
contextForStoredWorkflowInvocation
:
(
journal
:
{
deploymentId
:
string
;
getWorkflow
:
(
invocationId
:
string
,
)
=>
Promise
<
|
{
deploymentId
:
string
;
invocationId
:
string
;
principal
:
ExecutionPrincipal
;
tablePrefix
:
string
;
}
|
undefined
,
>
;
tablePrefix
:
string
;
}
,
invocationId
:
string
,
)
=>
Promise
<
ActorContext
|
undefined
>
;
contextForStoredWorkflowStart
:
(
workflowId
:
string
,
runId
:
string
,
)
=>
Promise
<
ActorContext
|
undefined
>
;
resolve
:
ActorResolver
;
topology
:
DoRunRemoteStepTopology
;
}
,
)
=>
Promise
<
Response
|
null
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
GitHub
Anchorage API reference
Loading...
A host mounts this route through preRoutes on its private state-script Worker.