users@jaxb.java.net

Re: Problem with BPMI Schema

From: Gunaranjan C <gunaranjan_c_at_SATYAM.COM>
Date: Fri, 17 Jan 2003 15:38:44 -0700

Thank you,
That not only worked, but now I also have a better understanding of the process.

Appreciate your detailed explanation.

The second error on the process definition continues to occur. This relates to existence of 'minOccurs' in the choice element. I am reading the JAXB specification and this seems to be supported. Am I missing something. Do I need a customization for this too. (apologize if I am being too dense).

Also it complained about the element "abstract=true". The release notes do say that this is not supported. I pulled it out (assuming from my current understanding that this is not relvant)

-------------------------------------------------------------------------
s4s-att-not-allowed: Attribute 'minOccurs' cannot appear in element 'choice'.
  line 296 of BPML-2002-process.xsd

s4s-att-not-allowed: Attribute 'maxOccurs' cannot appear in element 'choice'.
  line 296 of BPML-2002-process.xsd

cos-nonambig: "http://www.bpmi.org/2002/BPML/process":output and "http://www.bpmi.org/2002/BPML/process":output (or elements from their substitution group) violate "Unique Particle Attribution".
  line 395 of BPML-2002-process.xsd

Failed to parse a schema.
-------------------------------------------------------------------------

The process definition schema is too big - but the relavent lines seem to be

<xsd:group name="activityList">
    <xsd:choice minOccurs="1" maxOccurs="unbounded">
      <xsd:element name="action" type="bpml:action"/>
      <xsd:element name="all" type="bpml:all"/>
      <xsd:element name="assign" type="bpml:assign"/>
      <xsd:element name="call" type="bpml:call"/>
      <xsd:element name="choice" type="bpml:choice"/>
      <xsd:element name="compensate" type="bpml:compensate"/>
      <xsd:element name="delay" type="bpml:delay"/>
      <xsd:element name="empty" type="bpml:empty"/>
      <xsd:element name="fault" type="bpml:fault"/>
      <xsd:element name="foreach" type="bpml:foreach"/>
      <xsd:element name="raise" type="bpml:raise"/>
      <xsd:element name="sequence" type="bpml:sequence"/>
      <xsd:element name="spawn" type="bpml:spawn"/>
      <xsd:element name="switch" type="bpml:switch"/>
      <xsd:element name="synch" type="bpml:synch"/>
      <xsd:element name="until" type="bpml:until"/>
      <xsd:element name="while" type="bpml:while"/>
      <xsd:element ref="bpml:otherActivity"/>
    </xsd:choice>
  </xsd:group>
-------------------------------------------------------------------------


If I turn Verification off (-nv) then I still get the error


-Guna