Skip to Content
avatar image
Former Member

Using Dynamic configuration

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 07, 2007 at 11:40 AM

    Hi,

    I hope the stored value may not be available for the second mapping. to do this we need to use value mapping ,

    But here why dont you try to call the RFC directly and get the response and transform it to the target message and use it to the next mapping.

    Please see the below links for dynamic config.

    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

    Regards

    Chilla

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      >>>>I hope the stored value may not be available for the second mapping. to do this we need to use value mapping ,

      please don't do any inserting to value mapping tables from

      inside your mappings

      values mapping tables are for reading values not for inserting

      from mappings

      Regards,

      michal

  • avatar image
    Former Member
    May 08, 2007 at 06:47 AM

    just to bring this to the top...any clues experts??

    Add comment
    10|10000 characters needed characters exceeded