{"id":1811,"date":"2010-09-22T13:32:28","date_gmt":"2010-09-22T18:32:28","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=1811"},"modified":"2010-09-22T13:32:28","modified_gmt":"2010-09-22T18:32:28","slug":"use-domain-value-map-dvm-to-supply-oracle-bpel-property-values","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=1811","title":{"rendered":"Use Domain Value Map (DVM) to Supply Oracle BPEL Property Values"},"content":{"rendered":"<span id=\"Overview\"><h2>Overview<\/h2><\/span>\n<p>* See <a href=\"http:\/\/download-uk.oracle.com\/docs\/cd\/B31017_01\/\/integrate.1013\/b28211\/esb_dvm.htm\">here <\/a>for an overview of DVM.<br \/>\n* DVM can be used to supply runtime property values in Oracel ESB and BPEL applications using the following function.<\/p>\n<pre>orcl:lookup-dvm('Properties','Property','propertyName','Value','default value')<\/pre>\n<span id=\"How_to\"><h2>How to<\/h2><\/span>\n<span id=\"Create_DVM_in_ESB_Console\"><h3>Create DVM in ESB Console<\/h3><\/span>\n<p>* Login ESB console and create a new DVM file. Name first column &#8216;Property&#8217; and second &#8216;Value&#8217;.<br \/>\n* Add two rows of data: Property1\/Value1 and Property2\/Value2<br \/>\n* Save DVM.<\/p>\n<span id=\"Use_DVM_in_BPEL_Diagram\"><h3>Use DVM in BPEL Diagram<\/h3><\/span>\n<p>* Create an wsdl file and define a property message.<\/p>\n<pre lang=\"xml\">\r\n<definitions targetNamespace=\"http:\/\/www.my.com\/properties\/wsdl\" \r\n    xmlns=\"http:\/\/schemas.xmlsoap.org\/wsdl\/\" \r\n    xmlns:tns=\"http:\/\/www.my.com\/properties\/wsdl\" \r\n    xmlns:mime=\"http:\/\/schemas.xmlsoap.org\/wsdl\/mime\/\" \r\n    xmlns:soap12=\"http:\/\/schemas.xmlsoap.org\/wsdl\/soap12\/\" \r\n    xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" \r\n    xmlns:soap=\"http:\/\/schemas.xmlsoap.org\/wsdl\/soap\/\">\r\n  <types>\r\n    <xsd:schema elementFormDefault=\"qualified\"\r\n                targetNamespace=\"http:\/\/www.my.com\/properties\/wsdl\">\r\n      <xsd:complexType name=\"PropertiesType\">\r\n        <xsd:sequence>\r\n          <xsd:element name=\"property1\" type=\"xsd:int\"\/>\r\n          <xsd:element name=\"property2\" type=\"xsd:string\"\/>\r\n        <\/xsd:sequence>\r\n      <\/xsd:complexType>\r\n      <xsd:element name=\"Properties\" type=\"tns:PropertiesType\"\/>\r\n    <\/xsd:schema>\r\n  <\/types>\r\n  <message name=\"Properties\">\r\n    <part name=\"PropertiesPart\" element=\"tns:Properties\"\/>\r\n  <\/message>\r\n  <portType name=\"PropertiesPortType\">\r\n    <operation name=\"PropertiesPT\">\r\n      <input message=\"tns:Properties\"\/>\r\n      <output message=\"tns:Properties\"\/>\r\n    <\/operation>\r\n  <\/portType>\r\n<\/definitions>\r\n<\/pre>\n<p>* Define a Partner Link using the previous wsdl document in bpel diagram.<br \/>\n* Define a variable named PropertiesMsg of the {http:\/\/www.my.com\/properties\/wsdl}Properties type bpel diagram.<br \/>\n* Add a Transform activity with PropertiesMsg as both source variable and target variable. Create a new xsl mapping file and populate property values with orcl:lookup-dvm() function.<\/p>\n<pre lang=\"xml\">\r\n<xsl:template match=\"\/\">\r\n  <tns:ITVProperties>\r\n    <tns:property1>\r\n      <xsl:value-of select=\"orcl:lookup-dvm('Properties','Property','property1','Value','Default property1 value')\"\/>\r\n    <\/tns:property1>\r\n    <tns:property2>\r\n      <xsl:value-of select=\"orcl:lookup-dvm('Properties','Property','property2','Value','Default property2 value')\"\/>\r\n    <\/tns:property2>\r\n  <\/tns:ITVProperties>\r\n<\/xsl:template>\r\n<\/pre>\n<p>* Use PropertiesMsg in future bpel activities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview * See here for an overview of DVM. * DVM can be used to supply runtime property values in Oracel ESB and BPEL applications using the following function. orcl:lookup-dvm(&#8216;Properties&#8217;,&#8217;Property&#8217;,&#8217;propertyName&#8217;,&#8217;Value&#8217;,&#8217;default value&#8217;) How to Create DVM in ESB Console * Login &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=1811\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,48,35],"tags":[],"class_list":["post-1811","post","type-post","status-publish","format-standard","hentry","category-bpel","category-esb","category-oracle"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-td","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1811"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1811\/revisions"}],"predecessor-version":[{"id":1812,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1811\/revisions\/1812"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}