Empty activities

When developing BPEL processes, for example, in <if> activities, we need to specify an activity for each branch. However, if we do not want to perform any activity for a particular branch, we can specify an <empty> activity. Not specifying any activity in this case would result in an error, because the BPEL process would not correspond to the BPEL schema. Empty activities are also useful in fault handling, when we need to suppress a fault.

The syntax for the <empty> element is rather straightforward:

<empty/>

With this, we have concluded our discussion on loops and conditions.

Pop quiz – conditions and loops

Q1. Which parts of the <if> activity is optional?

  1. <if>
  2. <elseif>
  3. <else>

Q2. Which three types of loops are supported in BPEL?

Q3. Which loop evaluates the condition at the end?

Q4. Which loop supports parallel execution?

Q5. Which types of delays are supported in the <wait> activity?

Q6. How would you immediately end a BPEL process instance?

  1. <terminate>
  2. <exit>
  3. <stop>

Q7. How would you declare lists (array) in the XML schema?

  1. minOccurs='0'
  2. minOccurs='1'
  3. maxOccurs='unbounded'
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset