corda / net.corda.core.flows / FlowInitiator

FlowInitiator

sealed class FlowInitiator : Principal

Please note that FlowInitiator has been superceded by net.corda.core.context.InvocationContext, which offers more detail for the same event.

FlowInitiator holds information on who started the flow. We have different ways of doing that: via FlowInitiator.RPC, communication started by peer nodes (FlowInitiator.Peer), scheduled flows (FlowInitiator.Scheduled) or via the Corda Shell (FlowInitiator.Shell).

Types

Peer

data class Peer : FlowInitiator

Started when we get new session initiation request.

RPC

data class RPC : FlowInitiator

Started using net.corda.core.messaging.CordaRPCOps.startFlowDynamic.

Scheduled

data class Scheduled : FlowInitiator

Started as scheduled activity.

Service

data class Service : FlowInitiator

Started by a CordaService.

Shell

object Shell : FlowInitiator

Properties

invocationContext

val invocationContext: InvocationContext

Returns an InvocationContext, which is equivalent to this object but expressed using the successor to this class hierarchy (which is now deprecated). The returned object has less information than it could have, so prefer to use fetch an invocation context directly if you can (e.g. in net.corda.core.messaging.StateMachineInfo)

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.

Inheritors

Peer

data class Peer : FlowInitiator

Started when we get new session initiation request.

RPC

data class RPC : FlowInitiator

Started using net.corda.core.messaging.CordaRPCOps.startFlowDynamic.

Scheduled

data class Scheduled : FlowInitiator

Started as scheduled activity.

Service

data class Service : FlowInitiator

Started by a CordaService.

Shell

object Shell : FlowInitiator