Chinaunix首页 | 论坛 | 博客
  • 博客访问: 586706
  • 博文数量: 154
  • 博客积分: 10208
  • 博客等级: 上将
  • 技术积分: 2225
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-16 14:02
文章分类

全部博文(154)

文章存档

2012年(4)

2011年(44)

2010年(50)

2009年(4)

2008年(52)

我的朋友

分类:

2008-07-22 21:37:33

There are many times when we need Technical Context Objects like MESSAGE_ID in our BPM:

- we want to create a file with a message_id as it's name

- we need message_id to correlate request and response messages inside the BPM

*************************************************************************************
Unfortunately some of those technical objecs (like message id for instance) are not available in the BPM
(you can't retrieve then in a Transformation step).


The only way to get them is to use additional mapping step in the Interface determination.
*************************************************************************************

1. Let's suppose we have a simple BPM.

image

2. We've decided that we want to have incomming message ID in you of the fields of your abstract interface.
We create a Simple Java function to that will map the MESSAGE_ID to one of the fields of our absrtract interface.
image
3. The code of the simple java function:
 
String constant;
java.util.Map map;
map = container.getTransformationParameters();
constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
return constant;


4. We create mapping interface on the basis ot the mapping program that we've just prepared.

5. Now we have to add interface mapping to our interface determination step in XI Directory.

image

Then after we send the message we can easily see that we got MESSAGE_ID in our abstract interface (so in the BPM).
The message id is ready to be used in our integration process.

image

Hope this information will be usefull to some of you:)
阅读(1103) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~