corda / net.corda.core.flows / AbstractStateReplacementFlow / Acceptor

Acceptor

abstract class Acceptor<in T> : FlowLogic<Void?>

Types

APPROVING

object APPROVING : Step

VERIFYING

object VERIFYING : Step

Constructors

<init>

Acceptor(initiatingSession: FlowSession)
Acceptor(initiatingSession: FlowSession, progressTracker: ProgressTracker = Acceptor.tracker())

Properties

initiatingSession

val initiatingSession: FlowSession

progressTracker

Override this to provide a ProgressTracker. If one is provided and stepped, the framework will do something helpful with the progress reports e.g record to the audit service. If this flow is invoked as a subflow of another, then the tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track progress.

open val progressTracker: ProgressTracker

Functions

call

This is where you fill out your business logic.

open fun call(): Void?

verifyProposal

Check the state change proposal and the signed transaction to confirm that it's acceptable to this node. Rules for verification depend on the change proposed, and may further depend on the node itself (for example configuration). The proposal is returned if acceptable, otherwise a StateReplacementException is thrown.

abstract fun verifyProposal(stx: SignedTransaction, proposal: Proposal<T>): Unit

Companion Object Functions

tracker

fun tracker(): ProgressTracker