Skip to content

Instantly share code, notes, and snippets.

@ashutoshmeher-r3
Created October 25, 2021 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashutoshmeher-r3/f371d4e63e1af4f9068df0e4d21e74ff to your computer and use it in GitHub Desktop.
Save ashutoshmeher-r3/f371d4e63e1af4f9068df0e4d21e74ff to your computer and use it in GitHub Desktop.
@InitiatedBy(IssueLandTitleFlow.class)
public class IssueLandTitleFlowResponder implements Flow<SignedTransaction> {
@CordaInject
private FlowEngine flowEngine;
private FlowSession counterpartySession;
public IssueLandTitleFlowResponder(FlowSession counterpartySession) {
this.counterpartySession = counterpartySession;
}
@Suspendable
@Override
public SignedTransaction call() throws FlowException {
return flowEngine.subFlow(new ReceiveFinalityFlow(counterpartySession));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment