Created
October 25, 2021 09:21
-
-
Save ashutoshmeher-r3/f371d4e63e1af4f9068df0e4d21e74ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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