You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2013/03/25 17:25:16 UTC

[jira] [Commented] (OOZIE-1285) workflow xml only allows exactly one kill control node yet documentation states otherwise

    [ https://issues.apache.org/jira/browse/OOZIE-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612798#comment-13612798 ] 

Robert Kanter commented on OOZIE-1285:
--------------------------------------

I'm pretty sure that putting multiple kill nodes works.  If you look at more of the schema:
{code:xml}
<xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="decision" type="workflow:DECISION" minOccurs="1" maxOccurs="1"/>
    <xs:element name="fork" type="workflow:FORK" minOccurs="1" maxOccurs="1"/>
    <xs:element name="join" type="workflow:JOIN" minOccurs="1" maxOccurs="1"/>
    <xs:element name="kill" type="workflow:KILL" minOccurs="1" maxOccurs="1"/>
    <xs:element name="action" type="workflow:ACTION" minOccurs="1" maxOccurs="1"/>
</xs:choice>
{code}
I think the reason it works is that while you can only have one kill node per "choice", you can have an unbounded number of "choices", so in effect, you can have an unbounded number of kill nodes.  The same goes for decision, fork, join, and action; all of which I'm 100% sure can be used multiple times.  
                
> workflow xml only allows exactly one kill control node yet documentation states otherwise
> -----------------------------------------------------------------------------------------
>
>                 Key: OOZIE-1285
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1285
>             Project: Oozie
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 3.3.0
>            Reporter: Kaufman Ng
>
> In section 3.1.3 of the workflow functional spec (http://oozie.apache.org/docs/3.3.0/WorkflowFunctionalSpec.html#a3.1.3_Kill_Control_Node), it states:
> "A workflow definition may have zero or more kill nodes."
> But in Appendix A, the XML schema for kill node is:
> <xs:element name="kill" type="workflow:KILL" minOccurs="1" maxOccurs="1"/>
> So the docuemntation is incorrect.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira