以dinamically方式生成消息名称 [英] Generating Messages names dinamically

查看:59
本文介绍了以dinamically方式生成消息名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在orquestation中的多个节点中分割消息,我需要生成具有不同名称的消息。我使用%MessageID%.xml作为消息格式来生成它们。它可以工作,但我想在消息的末尾连接一个序列号,比如%MessageID%_sequence.xml。如何以声音方式构建xml名称以将其保存在特定文件夹中。

问候


Luis Diego Rojas。
http://icomparable.blogspot.com


MCP,MCTS Biztalk Server

解决方案

你可以从业务流程动态设置文件名上下文属性(FILE.ReceivedFileName),并在发送端口中使用宏%SourceFileName%。即,对于每个消息,通过连接消息ID和计数器设置上下文属性。

varID = MsgPagosRecibidos(BTS.InterchangeID)
varFileNamer = varID +" _" + varCounter.ToString();

构造msgNew
{
//构造消息
msgNew(FILE.ReceivedFileName)= varFileNamer;
}


Hi all,
I'm splitting a message in multiple nodes inside an orquestation and I need to generato those messages with different names. I'm using %MessageID%.xml as message format to generate them. It works but I'd like to concatenate a sequence number at the end of the message, something like %MessageID%_sequence.xml. How can I build the xml name dinamically to save it inside a specific folder.

Regards


Luis Diego Rojas. http://icomparable.blogspot.com
MCP, MCTS Biztalk Server

解决方案

you can dynamically set the file name context property (FILE.ReceivedFileName) from orchestration and use the macro %SourceFileName% in the send port.. i.e for each message set the context property by concatenating message id and a counter..

varID=MsgPagosRecibidos(BTS.InterchangeID)
varFileNamer=varID + "_" + varCounter.ToString();

construct msgNew
{
 //construct message
  msgNew(FILE.ReceivedFileName)=varFileNamer;
}


这篇关于以dinamically方式生成消息名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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