{"id":327,"date":"2013-10-27T19:34:04","date_gmt":"2013-10-27T18:34:04","guid":{"rendered":"http:\/\/www.psinke.nl\/wordpress\/?p=327"},"modified":"2013-10-27T19:34:04","modified_gmt":"2013-10-27T18:34:04","slug":"conditional-branching-oracle-bpel-processes-switch-vs-activity","status":"publish","type":"post","link":"https:\/\/www.psinke.nl\/blog\/conditional-branching-oracle-bpel-processes-switch-vs-activity\/","title":{"rendered":"Conditional branching in Oracle BPEL processes; the Switch vs If Activity"},"content":{"rendered":"<div class=\"afa2b3b851443650502c43e85c746c1f\" data-index=\"1\" style=\"float: none; margin:0px;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-4223201538046844\";\r\n\/* standaardblok *\/\r\ngoogle_ad_slot = \"9522527129\";\r\ngoogle_ad_width = 320;\r\ngoogle_ad_height = 50;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>Conditional branches in Oracle BPEL are designed to create decision points in your BPEL flow executions.<\/p>\n<p>There are a number of activities that allow conditional branching. If you&#8217;re working on a BPEL 2.0 project, it&#8217;s good to know that the <em>switch<\/em> activity is no longer available and replaced by the &#8220;<em>IF<\/em>&#8221; activity. The name change is entirely dictated by the BPEL v1.1 to v2.0 standard upgrade. There is no extension to the functionality; just rename the <em>switch<\/em> to <em>if<\/em>, make the condition attribute of the first case element a child element of the if element and change it\u2019s xsl variable format. Other <em>case<\/em> elements change to <em>elseif\u2019s<\/em>. Finally, <em>otherwise<\/em> becomes <em>else<\/em>.<\/p>\n<p>The <em>While<\/em> activity is available in all BPEL versions and is used to create a loop that, for instance, keeps polling until an activity is available or a specific condition is met.<\/p>\n<p>Just keep in mind, look for the &#8220;If&#8221; in projects that comply with BPEL 2.0 standards, and use &#8220;switch&#8221; in BPEL 1.1 projects. When upgrading, you \u00a0possibly should change the syntax manually.<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Conditional branches in Oracle BPEL are designed to create decision points in your BPEL flow executions. There are a number of activities that allow conditional branching. If you&#8217;re working on a BPEL 2.0 project, it&#8217;s good to know that the switch activity is no longer available and replaced by the &#8220;IF&#8221; activity. The name change&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[255,3],"tags":[296,301,302,300,299,297,298],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-middleware","category-oracle-blog","tag-bpel","tag-bpel-1-1","tag-bpel-2-0","tag-conditional-branching","tag-execution","tag-prcoess","tag-switch"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":0,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}