Skip to content

Instantly share code, notes, and snippets.

@ashutoshmeher-r3
Created October 24, 2021 07:30
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/818d0d4c409d970877d31f4ede2b8039 to your computer and use it in GitHub Desktop.
Save ashutoshmeher-r3/818d0d4c409d970877d31f4ede2b8039 to your computer and use it in GitHub Desktop.
@InitiatingFlow
@StartableByRPC
public class IssueLandTitleFlow implements Flow<Void>{
@CordaInject
private NotaryLookupService notaryLookupService;
@CordaInject
private FlowIdentity flowIdentity;
@CordaInject
private IdentityService identityService;
@Override
@Suspendable
public Void call() {
Party notary = notaryLookupService.getNotaryIdentities().get(0);
Party owner = identityService.partyFromName(CordaX500Name.parse(<owner passed to the flow>));
Party issuer = flowIdentity.getOurIdentity();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment