Hi Shameera, The documentation is wrong, the option should be removed for both. Both template and instance should be minOccurs="1" maxOccurs="1".
Suresh On Jul 21, 2013, at 12:59 AM, Shameera Rathnayaka <[email protected]> wrote: > Hi devs, > > I noticed that in workflow_execution_context.xsd[1] , some elements have been > mentinoed as optional in documentation tag but it is not define in > element(There should be minOccour=0 ), and some elements have been mentioned > as optional but it is not define. Please see below examples. > e.g: documentation tag say it is optional but element define as > required(minOccurs="1") > > <element name="workflow-instance-id" type="anyURI" minOccurs="1" > maxOccurs="1"> > <annotation> > <documentation xml:lang="en"> URI that identifies > workflow instance that > originated the message. (optional) > </documentation> > </annotation> > </element> > > documentation tag says it is optional but element define as required( default > value for minOccurs is 1) > > <element name="workflow-template-id" type="anyURI"> > <annotation> > <documentation xml:lang="en"> URI that identifies > workflow template that was > used to create the workflow > instance. > (optional) > </documentation> > </annotation> > </element> > > I think this is a bug in XSD. As i am on process of writing a new JSON schema > for this, it would be great if i can know what is optional and what is > required . Then I can fix this in both. > > [1] > https://svn.apache.org/repos/asf/airavata/trunk/modules/commons/workflow-execution-context/src/main/resources/workflow_execution_context.xsd > > > Thanks, > Shameera. > > -- > Best Regards, > Shameera Rathnayaka. > > email: shameera AT apache.org , shameerainfo AT gmail.com > Blog : http://shameerarathnayaka.blogspot.com/
