corda / net.corda.core.flows

Package net.corda.core.flows

Types

AppContext data class AppContext

This is just some way to track what attachments need to be in the class loader, but may later include some app properties loaded from the attachments. And perhaps the authenticated user for an API call?

FlowLogic abstract class FlowLogic<out T>

A sub-class of FlowLogic implements a flow using direct, straight line blocking code. Thus you can write complex flow logic in an ordinary fashion, without having to think about callbacks, restarting after a node crash, how many instances of your flow there are running and so on.

FlowLogicRef data class FlowLogicRef

A class representing a FlowLogic instance which would be possible to safely pass out of the contract sandbox.

FlowLogicRefFactory class FlowLogicRefFactory : SingletonSerializeAsToken

A class for conversion to and from FlowLogic and FlowLogicRef instances.

FlowStateMachine interface FlowStateMachine<R>

This is an internal interface that is implemented by code in the node module. You should look at FlowLogic.

StateMachineRunId data class StateMachineRunId

A unique identifier for a single state machine run, valid across node restarts. Note that a single run always has at least one flow, but that flow may also invoke sub-flows: they all share the same run id.

Exceptions

FlowException class FlowException : RuntimeException
IllegalFlowLogicException class IllegalFlowLogicException : IllegalArgumentException