public class FlowInitiator
Please note that class FlowInitiator
has been superceded by class 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 class FlowInitiator.RPC
,
communication started by peer nodes (class FlowInitiator.Peer
), scheduled flows (class FlowInitiator.Scheduled
)
or via the Corda Shell (class FlowInitiator.Shell
).
Modifier and Type | Class and Description |
---|---|
static class |
FlowInitiator.Peer
Started when we get new session initiation request.
|
static class |
FlowInitiator.RPC
Started using
CordaRPCOps.startFlowDynamic . |
static class |
FlowInitiator.Scheduled
Started as scheduled activity.
|
static class |
FlowInitiator.Service
Started by a CordaService.
|
static class |
FlowInitiator.Shell |
Modifier and Type | Method and Description |
---|---|
InvocationContext |
getInvocationContext()
Returns an
class 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 class StateMachineInfo ) |
public InvocationContext getInvocationContext()
Returns an class 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 class StateMachineInfo
)
class InvocationContext
,
class StateMachineInfo