Skip to Content
0
Former Member
May 07, 2007 at 11:27 AM

Using Dynamic configuration

27 Views

I have BPM in my scenario with two transformation steps one after the other...what I am trying to do is..

in first tranformation , I use Mapping Lookup API to fetch a value from RFC and I want to refer this same value in the transformation step 2.

what I did was,

1. In the first mapping I use an UDF to fetch the value and put it in the Dynamic Conf.

String someNumber = // Mapping lookup API Code
Map param = container.getTransformationParameters();
DynamicConfiguration conf = (DynamicConfiguration) param.get( 
          StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey sharedNumber = DynamicConfigurationKey.create("http://XXXXX/XXX","SNUM");	
conf.put(sharedGenerationNumber,someNumber);

2. In the second mapping i then just tried referring this stored value., like

 DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = 
DynamicConfigurationKey.create("http://XXXXX/XXX","SNUM");	
String sharedNum = conf.get(key);

Is it possible to achive correct result with this?