OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsbpel message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Issue 136 - Proposal For Vote


Issue 136 – If-Then-Else Support

Proposal: Rename the elements in switch to make them into an 
if-then-elseif-else structure.

Rationale: BPEL's switch is identical in functionality to what other 
languages use if-then-elseif-else for. To make matters more confusing 
other languages do include a control structure called 'switch' but in 
the majority of languages that 'switch' doesn't work anything like 
BPEL's switch does.
	Following the principle of least surprise it would be best if BPEL's 
flow control structures followed the same naming styles as used by just 
about every other major language.

Changes Required: Replace "switch" with "if", "case" with "elseif", 
"otherwise" with "else" and add in a "then" and condition element to the 
switch activity. This is a purely syntactic change.

<if standard-attributes>
    standard-elements
    <condition expressionLanguage="anyURI"?>
       ... bool-expr ...
    </condition>
    <then>activity</then>
    <elseif> *
       <condition expressionLanguage="anyURI"?>
          ... bool-expr ...
       </condition>
       activity
    </elseif>
    <else>?
       activity
    </else>
</if>

Note: Good ideas stolen from Maciej, bad ones I invented myself.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]