问题描述
你好团队,
在一个用例中,我发现文件名没有进入从自定义管道处理的消息。如何获取名称并从接收位置绑定到架构?如果 我使用XML接收作为管道如何在
orchestration中获取我的文件名?
In a use case, I find that file name is not getting into the message that processes from a custom pipeline. How can I get the name and bind to the schema from the receive location? If I am using XML receive as pipeline How can I get my filename in orchestration?
提前致谢。
推荐答案
就业务流程中的文件名而言,它是由文件适配器提升的,如果你正在使用这样的。您可以从输入消息上下文属性中获取名称 BTS.ReceivedFileName 即可。
在表达式中,shape使用下面的代码。
In so far as the filename in orchestration is concerned, it is promoted by the file adapter, if you are using such. You can get the filename from the input message context property called BTS.ReceivedFileName. In the expression, shape use the code below.
FileName = InputMessage(BTS.ReceivedFileName);
FileName = InputMessage(BTS.ReceivedFileName);
----------------------------------- -------------------------------------------------- ----------------
-----------------------------------------------------------------------------------------------------
请标记"建议作为答案"如果您对答案感到满意
Please mark "Propose as answer" if you are satisfied with the answer
这篇关于如何从接收位置查找文件名。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!