<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1178</bug_id>
          
          <creation_ts>2005-03-22 19:30:38 +0000</creation_ts>
          <short_desc>Workunit inside an exception handler</short_desc>
          <delta_ts>2005-07-14 16:47:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS Choreography</product>
          <component>Spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>1176</dup_id>
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/public-ws-chor-comments/2005Mar/0004.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>--</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Greg Ritzinger">gritzinger</reporter>
          <assigned_to name="Martin Chapman">martin.chapman</assigned_to>
          
          
          <qa_contact name="WS Choreography mailing-list">public-ws-chor-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3934</commentid>
    <comment_count>0</comment_count>
    <who name="Greg Ritzinger">gritzinger</who>
    <bug_when>2005-03-22 19:30:38 +0000</bug_when>
    <thetext>This issue is related to issue 1102, in that it questions the purpose of having
a workunit inside an exception handler, in the same way that 1102 questioned
having the workunit in a finalizerBlock.

If we compare the semantics of a workunit within the exception handler to a
general workunit, we find that they are essentially different constructs. The
exception workunit has no repetition or blocking behavior, and has extreme
restrictions on what can be placed in its guard condition (as far as I can tell
it is only possible to check the exception type).

So why is it called a workunit?

My proposal is that rather than trying to reuse an existing activity (workunit),
but modify its semantics significantly, would it not be better to have a new
construct that is specific to the needs of the exception handler.

There are two possible solutions:

1) move the declaration of exception type onto the exception block, and allow
multiple exception blocks to be defined.

&lt;choreo ...&gt;
   &lt;exceptionBlock name=&quot;..&quot; exceptionType=&quot;....&quot; &gt;
       &lt;!-- some activity --&gt;
   &lt;/exceptionBlock&gt;
   &lt;exceptionBlock name=&quot;..&quot; &gt;   &lt;!-- default exception handler --&gt;
       &lt;!-- some activity --&gt;
   &lt;/exceptionBlock&gt;
&lt;/choreo&gt;


2) have a new construct

&lt;choreo ...&gt;
    &lt;exceptionBlock ..&gt;
         &lt;exceptionHandler type=&quot;...&quot; &gt;
              &lt;!-- some activity --&gt;
         &lt;/exceptionHandler&gt;
         &lt;exceptionHandler&gt;        &lt;!-- default exception handler --&gt;
              &lt;!-- some activity --&gt;
         &lt;/exceptionHandler&gt;
    &lt;/exceptionBlock&gt;
&lt;/choreo&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4639</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Chapman">martin.chapman</who>
    <bug_when>2005-07-14 16:47:51 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 1176 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>