Package net.corda.v5.application.flows
Interface FlowEngine
-
- All Implemented Interfaces:
@DoNotImplement() public interface FlowEngine
FlowEngine provides core flow related functionality.
Corda provides an instance of DigitalSignatureVerificationService to flows via property injection.
-
-
Method Summary
Modifier and Type Method Description abstract UUID
getFlowId()
Gets the flow id that identifies this flow. abstract MemberX500Name
getVirtualNodeName()
Gets the MemberX500Name of the current virtual node executing the flow. abstract FlowContextProperties
getFlowContextProperties()
Gets the context properties of the current flow. abstract <R> R
subFlow(@NotNull() SubFlow<R> subFlow)
Executes the given SubFlow. -
-
Method Detail
-
getFlowId
@NotNull() abstract UUID getFlowId()
Gets the flow id that identifies this flow.
A subFlow shares the same flow id as the flow that invoked it via subFlow.
-
getVirtualNodeName
@NotNull() abstract MemberX500Name getVirtualNodeName()
Gets the MemberX500Name of the current virtual node executing the flow.
-
getFlowContextProperties
@NotNull() abstract FlowContextProperties getFlowContextProperties()
Gets the context properties of the current flow.
-
subFlow
@Suspendable() abstract <R> R subFlow(@NotNull() SubFlow<R> subFlow)
Executes the given SubFlow.
This function returns once the SubFlow completes, returning either:
Any open FlowSessions created within a SubFlow annotated with InitiatingFlow are sent:
-
-
-
-