corda / cdl-example

Example CorDapp showing how to convert a CDL diagram into code
Other
9 stars 6 forks source link

Rejection flow #3

Open sajin-parsedata opened 3 years ago

sajin-parsedata commented 3 years ago

hi everyone, what is the Corda shell command to reject a proposal. I just want the proper format of the stateandref to input in the Corda shell.

mattbradburyr3 commented 3 years ago

Hi Sajin,

Apologies for the delay, I haven't tried it out with the Corda Shell, for building contracts I tend to use the unit tests, then when developing 'proper' applications off this example we have a web server which drives the corDapp via RPC.

The Corda Shell is not great when it comes to firing more than the most basic flows. I tend to use the Kotlin REPL loaded up with some of the Corda classes, but this is fiddly to get working.

Your best bet is probably to modify the client module so you've got a mini Springboot server firing off the flows. (this is the normal corda deployment pattern)

Matt