如何传入缔约方列表以从Node shell调用流 [英] How to pass in a list of Partys for invocation of a flow from the Node shell

查看:27
本文介绍了如何传入缔约方列表以从Node shell调用流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何传入要从Node shell调用流的参与方列表?

How to pass in a list of Partys for invocation of a flow from the Node shell?

我尝试了多种方式,例如以字符串形式传入(多种方式).我需要传递Json吗?还是什么格式?

I had tried multiple ways such as passing in as a string (with multiple ways). Do i need to pass in a Json? or what is the format?

推荐答案

感谢您的提问.在Corda CRaSH shell中传递元素列表的语法是:

thanks for your question. The syntax for passing in lists of elements in the Corda CRaSH shell is:

流程开始fabFlow参与者:["party1","party2"]

创建复杂对象的语法可以在在此,但实质上只是一个简单的包装,用花括号将适当的调用参数提供参数:

The syntax for creating complicated objects can be found here but in essence is just a simple wrapping with curly braces to provide arguments to appropriate invocation params:

数据类Campaign(val name:String,val target:Int)

newCampaign:{名称:Roger,目标:1000}

这篇关于如何传入缔约方列表以从Node shell调用流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆