无法从 CordaShell 启动 IOUFlow(cordapp 模板教程)

Can't start a IOUFlow from CordaShell (cordapp-template tutorial)

我正在尝试 运行 IOU cordapp-template 但是当我从 shell 启动 IOUFlow 时我得到了这个错误

如果图像不可读,这是我提供的命令

start IOUFlow arg0: 10, arg1: "CN=NodeB,O=NodeB,L=New York, C=US"

这就是我遇到的错误

[iouValue: Int, otherParty: Party]: missing parameter iouValue

但是我的对象 IOUFlow 是正确的,关于如何处理它有什么建议吗?

您提供的参数不是 arg0arg1 等,而是参数本身的名称。

Mon Jul 31 10:45:54 BST 2017>>> flow start ExampleFlow iouValue: 10, otherParty: "CN=NodeB,O=NodeB,L=New York, C=US"

出于解析原因,在 : 和(例如)10 值之间包含 space 很重要。

改成

start ExampleFlow iouValue: 10, otherParty: "CN=NodeB,O=NodeB,L=New York, C=US"

即使您只是 运行 java 示例