corda / net.corda.core.contracts / SchedulableState / nextScheduledActivity

nextScheduledActivity

abstract fun nextScheduledActivity(thisStateRef: StateRef, flowLogicRefFactory: FlowLogicRefFactory): ScheduledActivity?

Indicate whether there is some activity to be performed at some future point in time with respect to this ContractState, what that activity is and at what point in time it should be initiated. This can be used to implement deadlines for payment or processing of financial instruments according to a schedule.

The state has no reference to it's own StateRef, so supply that for use as input to any FlowLogic constructed.

Return
null if there is no activity to schedule.