Skip to Content
Author's profile photo Michal Krawczyk

XI: Dynamic configuration in adapter modules – one step further

Daniel Graversen in one of his recent weblogs

presented an alternative way on how to create or update

dynamic adapter configuration in an adapter module:

Dynamic configuration in adapter modules

To understand it’s use we need to think where can we
use it:

– in the mappings – retrieving the dynamic configuration
was presented in a few weblogs

– in another adapter module

But what if we’d like to create a routing based
on this value ?
Would it be possible ?
In standard – no, but if we want to play a little bit
we can try to implement it.

In standard when the adapter fills the dynamic configuration we can use all of those objects
in the
receiver determination to route our message to a proper
receiver.
When we open the

Condition Editor


in our receiver determination we see all the dynamic values
for all adapters:

image

image

Remember

Both the creation of dynamic configuration
in adapter modules
and the creation of the fake
adapter metadata
is not the proper way
(both should only be created for real adapters).

Feel free to play with it with but keep the above in mind 🙂

Assigned Tags

      9 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Hi Mike,

      Just read the other blog on Dynamic configuration... and also your comment as well:)

      But I never thought you will be back so soon 🙂

      Interesting will try the same 🙂

      Regards,
      Prakash

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author
      Hi Prakash,

      try it 🙂

      Regards,
      michal

      Author's profile photo Bhavesh Kantilal
      Bhavesh Kantilal
      Michal,
      A good and innovative blog.
      Hoping for something more like this from you.

      Regards,
      Bhavesh

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      Blog Post Author
      Hi Bhavesh 🙂

      thanks 🙂

      Regards,
      michal

      Author's profile photo Former Member
      Former Member

      Michal,

       

      Can I add 'http://sap.com/xi/XI/System/Generic' ChunkMode to the list of context variables?

       

      I have a requirement where the second mapping in interface determination should be triggered only when the last chunk of a large file is received. i.e ChunkMode is 'End'.

      Author's profile photo Former Member
      Former Member
      Hi Michal, Is it possible to get this adapter data when data is sent between two BPMs?

      Thanks,

      Author's profile photo Former Member
      Former Member

      hi Michal,

       

      Can you please check the below link:-

      http://scn.sap.com/thread/3345110

       

      I am sure one of your tricks would work on this, but dont know which one.

       

      Regards,

      Ninu

      Author's profile photo Javier Alcubilla Alcala
      Javier Alcubilla Alcala

      Hi Michal

       

      Great improvement!

       

      Regards

      Javi

      Author's profile photo Philippe Addor
      Philippe Addor

      For whoever comes across this really old blog post which is still helpful nowadays (hint: especially for more dynamic routing in the B2B module!):

      I believe there is something missing in the text (maybe due to website migration of SAP): The point is to create your own adapter metadata file (ESR - any of your own SWCVs - New... - Adapter Metadata) and add the following code to the metadata file (the rest you can leave default) in order to define the name of the dynamic configuration attribute that you can use like a context object in the receiver and interface determination of an ICO:

      	<DynamicAttributes>
      		<AttributeReference>
      			<ReferenceName>NAME_OF_YOUR_CONTEXT_OBJECT</ReferenceName>
      		</AttributeReference>
      	</DynamicAttributes>
      	<Attribute>
      		<Name>NAME_OF_YOUR_CONTEXT_OBJECT</Name>
      		<DataType>xsd:string</DataType>
      		<GuiLabels>
      			<Label language="EN">dummy</Label>
      		</GuiLabels>
      	</Attribute>