Tag: wso2esb

wso2esb-访问迭代器中介之外的变量

基本上,在迭代器中,我使用Script(name:setValue)mediator设置一些变量。 我试图在迭代器之外的Ruby脚本中访问它们。 根据文档: 如何访问在迭代器中定义的迭代器之外的属性介体? 我试过不同的选择: 1)在Ruby脚本中,我尝试使用 $mc.get-property(‘Operation’,’githubhosturl1′); I am getting syntax error at operation. 2)外部迭代器我尝试使用Property访问它们 <property expression="get-property('operation','githubhosturl') name="githubhosturl1) 表达式出错。 3)在Ruby脚本中我试过: $ mc.get-property(’githubhosturl1’) – 返回空值 我该如何解决这个问题? 我的代码 – 代理服务 – 我只粘贴一小部分,存在问题。 在setValue脚本中,我能够在控制台日志中打印该值。 ——- ——– ——-