10.2.9 Представление XML-схемы для Действий

Таблица 10.32 – XML-схема для элемента Activity

<xsd:element name="activity" type="tActivity"/>
<xsd:complexType name="tActivity" abstract="true">
<xsd:complexContent>
<xsd:extension base="tFlowNode">
<xsd:sequence>
<xsd:element ref="ioSpecification" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="property" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="dataInputAssociation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="dataOutputAssociation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="resourceRole" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="loopCharacteristics" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="isForCompensation" type="xsd:boolean" default="false"/>
<xsd:attribute name="startQuantity" type="xsd:integer" default="1"/>
<xsd:attribute name="completetionQuantity" type="xsd:integer" default="1"/>
<xsd:attribute name="default" type="xsd:IDREF" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.33 – XML-схема для элемента AdHocSubProcess

<xsd:element name="adHocSubProcess" type="tAdHocSubProcess" substitutionGroup="flowElement"/>
<xsd:complexType name="tAdHocSubProcess">
<xsd:complexContent>
<xsd:extension base="tSubProcess">
<xsd:sequence>
<xsd:element name="completionCondition" type="tExpression" minOccurs="0"
maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="cancelRemainingInstances" type="xsd:boolean" default="true"/>
<xsd:attribute name="ordering" type="tAdHocOrdering" default="Parallel"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>


<xsd:simpleType name="tAdHocOrdering">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Parallel"/>
<xsd:enumeration value="Sequential"/>
</xsd:restriction>
</xsd:simpleType>

Таблица 10.34 – XML-схема для элемента BusinessRuleTask

<xsd:element name="businessRuleTask" type="tBusinessRuleTask" substitutionGroup="flowElement"/>
<xsd:complexType name="tBusinessRuleTask">
<xsd:complexContent>
<xsd:extension base="tTask">
<xsd:attribute name="implementation" type="tImplementation" default="##unspecified"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.35 – XML-схема для элементаCallableElement

<xsd:element name="callableElement" type="tCallableElement"/>
<xsd:complexType name="tCallableElement">
<xsd:complexContent>
<xsd:extension base="tRootElement">
<xsd:sequence>
<xsd:element name="supportedInterfaceRef" type="xsd:QName" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element ref="ioSpecification" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="ioBinding" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.36 – XML-схема для элемента CallActivity

<xsd:element name="callActivity" type="tCallActivity" substitutionGroup="flowElement"/>
<xsd:complexType name="tCallActivity">
<xsd:complexContent>
<xsd:extension base="tActivity">
<xsd:attribute name="calledElement" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.37 – XML-схема для элемента GlobalBusinessRuleTask

<xsd:element name="globalBusinessRuleTask" type="tGlobalBusinessRuleTask" substitution-
Group="rootElement"/>
<xsd:complexType name="tGlobalBusinessRuleTask">
<xsd:complexContent>
<xsd:extension base="tGlobalTask">
<xsd:attribute name="implementation" type="tImplementation" default="##unspecified"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.38 – XML-схема для элемента GlobalScriptTask

<xsd:element name="globalScriptTask" type="tGlobalScriptTask" substitutionGroup="rootElement"/>
<xsd:complexType name="tGlobalScriptTask">
<xsd:complexContent>
<xsd:extension base="tGlobalTask">
<xsd:sequence>
<xsd:element ref="script" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="scriptLanguage" type="xsd:anyURI"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.39 – XML-схема для элемента GlobalTask

<xsd:element name="globalTask" type="tGlobalTask" substitutionGroup="rootElement"/>
<xsd:complexType name="tGlobalScriptTask">
<xsd:complexContent>
<xsd:extension base="tCallableElement">
<xsd:sequence>
<xsd:element ref="resourceRole" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.40 – XML-схема для элемента LoopCharacteristics

<xsd:element name="loopCharacteristics" type="tLoopCharacteristics"/>
<xsd:complexType name="tLoopCharacteristics" abstract="true">
<xsd:complexContent>
<xsd:extension base="tBaseElement"/>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.41 – XML-схема для элементаMultiInstanceLoopCharacteristics

<xsd:element name="multiInstanceLoopCharacteristics" type="tMultiInstanceLoopCharacteristics"
substitutionGroup="loopCharacteristics"/>
<xsd:complexType name="tMultiInstanceLoopCharacteristics">
<xsd:complexContent>
<xsd:extension base="tLoopCharacteristics">
<xsd:sequence>
<xsd:element name="loopCardinality" type="tExpression" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="loopDataInputRef" type="xsd:QName" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="loopDataOutputRef" type="xsd:QName" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="inputDataItem" type="tDataInput" minOccurs="0" maxOccurs="1"/>
<xsd:element name="outputDataItem" type="tDataOutput" minOccurs="0"
maxOccurs="1"/>
<xsd:element ref="complexBehaviorDefinition" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="completionCondition" type="tExpression" minOccurs="0"
maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="isSequential" type="xsd:boolean" default="false"/>
<xsd:attribute name="behavior" type="tMultiInstanceFlowCondition" default="All"/>
<xsd:attribute name="oneBehaviorEventRef" type="xsd:QName" use="optional"/>
<xsd:attribute name="noneBehaviorEventRef" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:simpleType name="tMultiInstanceFlowCondition">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="None"/>
<xsd:enumeration value="One"/>
<xsd:enumeration value="All"/>
<xsd:enumeration value="Complex"/>
</xsd:restriction>
</xsd:simpleType>

Таблица 10.42 – XML-схема для элементаReceiveTask

<xsd:element name="receiveTask" type="tReceiveTask" substitutionGroup="flowElement"/>
<xsd:complexType name="tReceiveTask">
<xsd:complexContent>
<xsd:extension base="tTask">
<xsd:attribute name="implementation" type="tImplementation" default="##WebService"/>
<xsd:attribute name="instantiate" type="xsd:boolean" default="false"/>
<xsd:attribute name="messageRef" type="xsd:QName" use="optional"/>
<xsd:attribute name="operationRef" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.43 – XML-схема для элементаResourceRole

<xsd:element name="resourceRole" type="tResourceRole"/>
<xsd:complexType name="tResourceRole">
<xsd:complexContent>
<xsd:extension base="tBaseElement">
<xsd:choice>
<xsd:sequence>
<xsd:element name="resourceRef" type="xsd:QName" minOccurs="0"
maxOccurs="1"/>
<xsd:element ref="resourceParameterBinding" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:element ref="resourceAssignmentExpression" minOccurs="0" maxOccurs="1"/>
</xsd:choice>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.44 – XML-схема для элементаScriptTask

<xsd:element name="scriptTask" type="tScriptTask" substitutionGroup="flowElement"/>
<xsd:complexType name="tScriptTask">
<xsd:complexContent>
<xsd:extension base="tTask">
<xsd:sequence>
<xsd:element ref="script" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="scriptFormat" type="xsd:anyURI"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>


<xsd:element name="script" type="tScript"/>
<xsd:complexType name="tScript" mixed="true">
<xsd:sequence>
<xsd:any namespace="##any" processContents="lax" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>

Таблица 10.45 – XML-схема для элементаSendTask

<xsd:element name="sendTask" type="tSendTask" substitutionGroup="flowElement"/>
<xsd:complexType name="tSendTask">
<xsd:complexContent>
<xsd:extension base="tTask">
<xsd:attribute name="implementation" type="tImplementation" default="##WebService"/>
<xsd:attribute name="messageRef" type="xsd:QName" use="optional"/>
<xsd:attribute name="operationRef" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.46 – XML-схема для элементаServiceTask

<xsd:element name="serviceTask" type="tServiceTask" substitutionGroup="flowElement"/>
<xsd:complexType name="tServiceTask">
<xsd:complexContent>
<xsd:extension base="tTask">
<xsd:attribute name="implementation" type="tImplementation" default="##WebService"/>
<xsd:attribute name="operationRef" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.47 – XML-схема для элемента StandardLoopCharacteristics

<xsd:element name="standardLoopCharacteristics" type="tStandardLoopCharacteristics"/>
<xsd:complexType name="tStandardLoopCharacteristics">
<xsd:complexContent>
<xsd:extension base="tLoopCharacteristics">
<xsd:sequence>
<xsd:element name="loopCondition" type="tExpression" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="testBefore" type="xsd:boolean" default="false"/>
<xsd:attribute name="loopMaximum" type="xsd:integer" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.48 – XML-схема для элемента SubProcess

<xsd:element name="subProcess" type="tSubProcess" substitutionGroup="flowElement"/>
<xsd:complexType name="tSubProcess">
<xsd:complexContent>
<xsd:extension base="tActivity">
<xsd:sequence>
<xsd:element ref="laneSet" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="flowElement" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="artifact" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="triggeredByEvent" type="xsd:boolean" default="false"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.49 – XML-схема для элемента Task

<xsd:element name="task" type="tTask" substitutionGroup="flowElement"/>
<xsd:complexType name="tTask">
<xsd:complexContent>
<xsd:extension base="tActivity"/>
</xsd:complexContent>
</xsd:complexType>

Таблица 10.50– XML-схема для элемента Transaction

<xsd:element name="transaction" type="tTransaction" substitutionGroup="flowElement"/>
<xsd:complexType name="tTransaction">
<xsd:complexContent>
<xsd:extension base="tSubProcess">
<xsd:attribute name="method" type="tTransactionMethod" default="Compensate"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:simpleType name="tTransactionMethod">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Compensate"/>
<xsd:enumeration value="Image"/>
<xsd:enumeration value="Store"/>
</xsd:restriction>
</xsd:simpleType>