我将如何通过Flow访问存储在注册表中的String对象? (ESB M子3.3) [英] How would I go about accessing a String object stored in the registry form a Flow? (Mule ESB 3.3)
问题描述
我有一些密码,可以通过自定义的书面Java类访问这些密码,并将解密后的值保存在注册表中作为String对象.(注意:我们无权使用Enterprise Edition来利用Credentials Vault功能.)>
我可以成功保存它们并以代码访问它们,但是在流中访问它时遇到了麻烦.具体来说是Salesforce连接器:
<sfdc:config name="ConfigurableSalesforceConnection" username="${sfdc.username}" password="#app.registry.get('salesforcepassword')" securityToken="${sfdc.securityToken}" doc:name="Salesforce" url="${sfdc.url}"/
我使用的一些语法是:
password="#app.registry.get('salesforcepassword')"
和
app.registry['salesforcepassword']
这是否有可能,或者我应该探索其他途径吗?
尝试一下
#[app.registry['salesforcepassword']]
I have some passwords that I access via a custom written java class and save the decrypted values in the Registry as String objects.(Note: we do not have access to the Enterprise Edition to leverage the Credentials Vault features.)
I can successfully save them and access them in code but I am having trouble accessing it in the flow. Specifically the Salesforce connector:
<sfdc:config name="ConfigurableSalesforceConnection" username="${sfdc.username}" password="#app.registry.get('salesforcepassword')" securityToken="${sfdc.securityToken}" doc:name="Salesforce" url="${sfdc.url}"/
Some of the Syntax I have used is:
password="#app.registry.get('salesforcepassword')"
and
app.registry['salesforcepassword']
Is this even possible or should I explore different avenues?
Try this
#[app.registry['salesforcepassword']]
这篇关于我将如何通过Flow访问存储在注册表中的String对象? (ESB M子3.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!