corda / net.corda.core.flows / InitiatedBy

InitiatedBy

@Target([AnnotationTarget.CLASS]) annotation class InitiatedBy

This annotation is required by any FlowLogic that is designed to be initiated by a counterparty flow. The class must have at least a constructor which takes in a single net.corda.core.identity.Party parameter which represents the initiating counterparty. The FlowLogic that does the initiating is specified by the value property and itself must be annotated with InitiatingFlow.

The node on startup scans for FlowLogics which are annotated with this and automatically registers the initiating to initiated flow mapping.

See Also

InitiatingFlow

Constructors

<init>

InitiatedBy(value: KClass<out FlowLogic<*>>)

This annotation is required by any FlowLogic that is designed to be initiated by a counterparty flow. The class must have at least a constructor which takes in a single net.corda.core.identity.Party parameter which represents the initiating counterparty. The FlowLogic that does the initiating is specified by the value property and itself must be annotated with InitiatingFlow.

Properties

value

val value: KClass<out FlowLogic<*>>

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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