|
|
@@ -1,95 +1,95 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:base="http://www.bpmhome.cn/bpm/plugins/userCalc/base" targetNamespace="http://www.bpmhome.cn/bpm/plugins/userCalc/base" xmlns:tns="http://www.example.org/base" elementFormDefault="qualified">
|
|
|
-
|
|
|
- <xs:simpleType name="logicCalType">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>逻辑运算(or,and,exclude)</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- <xs:restriction base="xs:string">
|
|
|
- <xs:enumeration value="or"/>
|
|
|
- <xs:enumeration value="and"/>
|
|
|
- <xs:enumeration value="exclude"/>
|
|
|
- </xs:restriction>
|
|
|
- </xs:simpleType>
|
|
|
-
|
|
|
- <xs:simpleType name="extractType">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>人员抽取类型</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- <xs:restriction base="xs:string">
|
|
|
- <xs:enumeration value="no"/>
|
|
|
- <xs:enumeration value="extract"/>
|
|
|
- <xs:enumeration value="secondExtract"/>
|
|
|
- <xs:enumeration value="usergroup"/>
|
|
|
- </xs:restriction>
|
|
|
- </xs:simpleType>
|
|
|
-
|
|
|
- <xs:simpleType name="boolType">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>布尔值(Y,N)</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- <xs:restriction base="xs:string">
|
|
|
- <xs:enumeration value="Y"/>
|
|
|
- <xs:enumeration value="N"/>
|
|
|
- </xs:restriction>
|
|
|
- </xs:simpleType>
|
|
|
-
|
|
|
- <xs:complexType name="abstractLogic">
|
|
|
- <xs:attribute name="logicCal" type="base:logicCalType" />
|
|
|
- <xs:attribute name="extract" type="base:extractType" />
|
|
|
- </xs:complexType>
|
|
|
-
|
|
|
- <xs:element name="userRule">
|
|
|
- <xs:complexType>
|
|
|
- <xs:all>
|
|
|
- <xs:element name="description" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>描述</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:element>
|
|
|
- <xs:element name="condition" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>条件表达式</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:element>
|
|
|
- <xs:element name="conditionMode" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>条件表达式模式:design=来自设计器;input=直接输入</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:element>
|
|
|
- <xs:element name="parentFlowkey" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>父流程的定义Key</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:element>
|
|
|
- <xs:element name="calcs" maxOccurs="1" minOccurs="1">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>人员计算插件</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:element>
|
|
|
- </xs:all>
|
|
|
-
|
|
|
- <xs:attribute name="name" type="xs:string">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>规则名称</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:attribute>
|
|
|
-
|
|
|
- <xs:attribute name="groupNo" type="xs:int" use="required">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>分组编号</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- </xs:attribute>
|
|
|
- </xs:complexType>
|
|
|
- </xs:element>
|
|
|
-
|
|
|
+
|
|
|
+ <xs:simpleType name="logicCalType">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>逻辑运算(or,and,exclude)</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:enumeration value="or"/>
|
|
|
+ <xs:enumeration value="and"/>
|
|
|
+ <xs:enumeration value="exclude"/>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
+
|
|
|
+ <xs:simpleType name="extractType">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>人员抽取类型</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:enumeration value="no"/>
|
|
|
+ <xs:enumeration value="extract"/>
|
|
|
+ <xs:enumeration value="secondExtract"/>
|
|
|
+ <xs:enumeration value="usergroup"/>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
+
|
|
|
+ <xs:simpleType name="boolType">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>布尔值(Y,N)</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:enumeration value="Y"/>
|
|
|
+ <xs:enumeration value="N"/>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
+
|
|
|
+ <xs:complexType name="abstractLogic">
|
|
|
+ <xs:attribute name="logicCal" type="base:logicCalType" />
|
|
|
+ <xs:attribute name="extract" type="base:extractType" />
|
|
|
+ </xs:complexType>
|
|
|
+
|
|
|
+ <xs:element name="userRule">
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:all>
|
|
|
+ <xs:element name="description" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>描述</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="condition" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>条件表达式</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="conditionMode" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>条件表达式模式:design=来自设计器;input=直接输入</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="parentFlowkey" type="xs:string" maxOccurs="1" minOccurs="0">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>父流程的定义Key</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="calcs" maxOccurs="1" minOccurs="1">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>人员计算插件</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ </xs:all>
|
|
|
+
|
|
|
+ <xs:attribute name="name" type="xs:string">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>规则名称</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+
|
|
|
+ <xs:attribute name="groupNo" type="xs:int" use="required">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>分组编号</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+
|
|
|
<xs:complexType name="executorVar">
|
|
|
<xs:attribute name="source" type="base:executorSrcType" use="required">
|
|
|
<xs:annotation>
|
|
|
<xs:documentation>值来自BO还是流程变量</xs:documentation>
|
|
|
</xs:annotation>
|
|
|
</xs:attribute>
|
|
|
-
|
|
|
+
|
|
|
<xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
|
|
|
<xs:attribute name="value" type="xs:string" use="required"></xs:attribute>
|
|
|
<xs:attribute name="executorType" type="base:executorType" use="required"></xs:attribute>
|
|
|
@@ -99,7 +99,7 @@
|
|
|
</xs:annotation>
|
|
|
</xs:attribute>
|
|
|
</xs:complexType>
|
|
|
-
|
|
|
+
|
|
|
<xs:simpleType name="executorSrcType">
|
|
|
<xs:restriction base="xs:string">
|
|
|
<xs:enumeration value="boVar"></xs:enumeration>
|
|
|
@@ -107,43 +107,45 @@
|
|
|
<xs:enumeration value="consVar"></xs:enumeration>
|
|
|
</xs:restriction>
|
|
|
</xs:simpleType>
|
|
|
-
|
|
|
+
|
|
|
<xs:simpleType name="executorType">
|
|
|
<xs:restriction base="xs:string">
|
|
|
<xs:enumeration value="org"></xs:enumeration>
|
|
|
<xs:enumeration value="user"></xs:enumeration>
|
|
|
+ <xs:enumeration value="position"></xs:enumeration>
|
|
|
</xs:restriction>
|
|
|
</xs:simpleType>
|
|
|
-
|
|
|
+
|
|
|
<xs:simpleType name="valType">
|
|
|
<xs:restriction base="xs:string">
|
|
|
<xs:enumeration value="account"></xs:enumeration>
|
|
|
<xs:enumeration value="userId"></xs:enumeration>
|
|
|
<xs:enumeration value="orgKey"></xs:enumeration>
|
|
|
<xs:enumeration value="orgId"></xs:enumeration>
|
|
|
+ <xs:enumeration value="positionId"></xs:enumeration>
|
|
|
<xs:enumeration value=""></xs:enumeration>
|
|
|
</xs:restriction>
|
|
|
</xs:simpleType>
|
|
|
-
|
|
|
- <xs:simpleType name="userType">
|
|
|
- <xs:restriction base="xs:string">
|
|
|
- <xs:enumeration value="start"></xs:enumeration>
|
|
|
- <xs:enumeration value="prev"></xs:enumeration>
|
|
|
- <xs:enumeration value="spec"></xs:enumeration>
|
|
|
- <xs:enumeration value="var"></xs:enumeration>
|
|
|
- <xs:enumeration value="node"></xs:enumeration>
|
|
|
- </xs:restriction>
|
|
|
- </xs:simpleType>
|
|
|
-
|
|
|
- <xs:simpleType name="partyType">
|
|
|
- <xs:annotation>
|
|
|
- <xs:documentation>参与者类型(org/position)</xs:documentation>
|
|
|
- </xs:annotation>
|
|
|
- <xs:restriction base="xs:string">
|
|
|
- <xs:enumeration value="org"/>
|
|
|
- <xs:enumeration value="position"/>
|
|
|
- <xs:enumeration value="employee"/>
|
|
|
- <xs:enumeration value="role"/>
|
|
|
- </xs:restriction>
|
|
|
- </xs:simpleType>
|
|
|
+
|
|
|
+ <xs:simpleType name="userType">
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:enumeration value="start"></xs:enumeration>
|
|
|
+ <xs:enumeration value="prev"></xs:enumeration>
|
|
|
+ <xs:enumeration value="spec"></xs:enumeration>
|
|
|
+ <xs:enumeration value="var"></xs:enumeration>
|
|
|
+ <xs:enumeration value="node"></xs:enumeration>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
+
|
|
|
+ <xs:simpleType name="partyType">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>参与者类型(org/position)</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:enumeration value="org"/>
|
|
|
+ <xs:enumeration value="position"/>
|
|
|
+ <xs:enumeration value="employee"/>
|
|
|
+ <xs:enumeration value="role"/>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
</xs:schema>
|