SOA Suite 12c: Using Domain Value Map (DVM) in Service Bus projects image299

SOA Suite 12c: Using Domain Value Map (DVM) in Service Bus projects

Domain Value Maps are still DVMs in SOA Suite 12c. Create them in JDeveloper, use them in Transformations and Assignments in Mediator and BPEL. Inspect them and edit them at run time using SOA Composer. Nothing really new there.

What is new:

  • In 12c, we can use XQuery in BPEL and Mediator – and in these XQuery functions we can use Domain Value Map as well.
  • In 12c, we can use both XQuery and XSL Map in Service Bus – and here we can use Domain Value Maps as well
  • In 12c, we can inspect and edit Domain Value Maps also at runtime in the Service Bus Design Composer/Console
  • In 12c, we can create Domain Value Maps in Service Bus projects, publish them to the MDS Design Time Repository as well as import them into Service Bus projects from that repository

So as of now, in SOA Suite 12c we can leverage Domain Value Map from Service Bus components.

Let’s see what this all looks like:

Create a new resource in a Service Bus project, of type Domain Value Map:

image_thumb[53]

Define the name, the domains (columns) and a first sample of domain/column values:

image_thumb[51]

Press OK and the Domain Value Map editor is opened:

image

When the DVM is defined, it can be used – in XSLT Map, in XQuery – as shown here –

image

and in expressions, configured using this XQuery expression editor:

image

 

Publishing to and Importing from the SOA Design MDS Repository

The DVM can also be published to the Designtime MDS Repository:

image_thumb50

Let’s create a new directory in the MDS repository:

image_thumb56

and call it DomainValueMaps:

image_thumb57

Press OK, press Next:

image_thumb60

Press Finish

image_thumb61

And after refreshing the MDS connection

image_thumb63

The new resource is visible and available:

image_thumb66

When you want to make use of the DVM in another Service Bus project, you use the context menu option Import Resource.

Run time inspecting and editing of the Domain Value Map in the Service Bus Console

Note: when the Service Bus project has been deployed, the Domain Value Map is deployed as part of the Service Bus project. It is accessible through the Service Bus Design Composer tool – for inspection and even for run time editing:

image_thumb[71]

 

Sharing the Domain Value Map with other projects through the Design Time MDS Repository

The Domain Value Map can also be published to the Designtime MDS Repository, to make it available to other projects – both Service Bus and SOA composite:

image_thumb[50]

Let’s create a new directory in the MDS repository:

image_thumb[56]

and call it DomainValueMaps:

image_thumb[57]

Press OK, press Next:

image_thumb[60]

Press Finish

image_thumb[61]

And after refreshing the MDS connection

image_thumb[63]

The new resource is visible and available:

image_thumb[66]

When you want to make use of the DVM in another Service Bus project, you use the context menu option Import Resource.

If you want to refer to a resource in the MDS repository from a SOA composite application, you can browse for the resource in the standard browse dialog:

image_thumb[68]

One Response

  1. gargvivek2008 September 19, 2014