summaryrefslogtreecommitdiffstats
path: root/WFM_group_XX/Process B.xml
diff options
context:
space:
mode:
Diffstat (limited to 'WFM_group_XX/Process B.xml')
-rw-r--r--WFM_group_XX/Process B.xml919
1 files changed, 919 insertions, 0 deletions
diff --git a/WFM_group_XX/Process B.xml b/WFM_group_XX/Process B.xml
new file mode 100644
index 0000000..5a975b1
--- /dev/null
+++ b/WFM_group_XX/Process B.xml
@@ -0,0 +1,919 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<specificationSet xmlns="http://www.citi.qut.edu.au/yawl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="Beta 7.1" xsi:schemaLocation="http://www.citi.qut.edu.au/yawl d:/yawl/schema/YAWL_SchemaBeta7.1.xsd">
+ <specification uri="newprocess2.ywl">
+ <metaData>
+ <creator>vkannan</creator>
+ <description>No description has been given.</description>
+ <version>0.1</version>
+ </metaData>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:complexType name="client">
+ <xs:sequence>
+ <xs:element maxOccurs="1" minOccurs="1" name="ID" type="xs:long" />
+ <xs:element maxOccurs="1" minOccurs="1" name="Name" type="xs:string" />
+ <xs:element maxOccurs="1" minOccurs="1" name="Address" type="xs:string" />
+ <xs:element maxOccurs="1" minOccurs="1" name="Phone" type="xs:string" />
+ <xs:element maxOccurs="1" minOccurs="1" name="InsuranceScheme" type="xs:string" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="claim">
+ <xs:sequence>
+ <xs:element maxOccurs="1" minOccurs="1" name="Information" type="xs:string" />
+ <xs:element maxOccurs="1" minOccurs="1" name="Hospital" type="xs:string" />
+ <xs:element maxOccurs="1" minOccurs="1" name="AmountClaimed" type="xs:double" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="questionnaire">
+ <xs:sequence>
+ <xs:element maxOccurs="5" minOccurs="1" name="question" type="xs:string" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:simpleType name="claimType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="High" />
+ <xs:enumeration value="Low" />
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="answerType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="Accept" />
+ <xs:enumeration value="Reject" />
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="package">
+ <xs:sequence>
+ <xs:element maxOccurs="1" minOccurs="1" name="Answer" type="answerType" />
+ <xs:element maxOccurs="1" minOccurs="0" name="Amount" type="xs:double" />
+ <xs:element maxOccurs="1" minOccurs="1" name="Message" type="xs:string" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="decisionInfo">
+ <xs:sequence>
+ <xs:element maxOccurs="1" minOccurs="1" name="ClaimType" type="claimType" />
+ <xs:element maxOccurs="1" minOccurs="0" name="InsuranceCompliance" type="xs:boolean" />
+ <xs:element maxOccurs="1" minOccurs="1" name="MedicalHistoryCompliance" type="xs:boolean" />
+ <xs:element maxOccurs="1" minOccurs="0" name="HospitalInformation" type="xs:string" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ <decomposition id="InsuranceAgency" isRootNet="true" xsi:type="NetFactsType">
+ <localVariable>
+ <name>AnswerType</name>
+ <type>answerType</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>B</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>C</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>ClaimType</name>
+ <type>claimType</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>DecisionInfo</name>
+ <type>decisionInfo</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue>&lt;ClaimType&gt;Low&lt;/ClaimType&gt;
+&lt;InsuranceCompliance&gt;false&lt;/InsuranceCompliance&gt;
+&lt;MedicalHistoryCompliance&gt;false&lt;/MedicalHistoryCompliance&gt;
+&lt;HospitalInformation&gt;none&lt;/HospitalInformation&gt;</initialValue>
+ </localVariable>
+ <localVariable>
+ <name>Package</name>
+ <type>package</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <localVariable>
+ <name>Questionnaire</name>
+ <type>questionnaire</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ <initialValue />
+ </localVariable>
+ <processControlElements>
+ <inputCondition id="InputCondition_1">
+ <name>start</name>
+ <flowsInto>
+ <nextElementRef id="register_6" />
+ </flowsInto>
+ </inputCondition>
+ <task id="register_6">
+ <name>register</name>
+ <flowsInto>
+ <nextElementRef id="classify_7" />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="create_questionnaire_208" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/register/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/register/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Public Relation$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="register" />
+ </task>
+ <task id="classify_7">
+ <name>classify</name>
+ <flowsInto>
+ <nextElementRef id="high-insurance_check_8" />
+ <predicate ordering="0">/InsuranceAgency/ClaimType/text()='High'</predicate>
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="AND_split1_12" />
+ <isDefaultFlow />
+ </flowsInto>
+ <join code="xor" />
+ <split code="xor" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;ClaimType&gt;{/classify/ClaimType/text()}&lt;/ClaimType&gt;" />
+ <mapsTo>ClaimType</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Manager$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="classify" />
+ </task>
+ <task id="create_questionnaire_208">
+ <name>create questionnaire</name>
+ <flowsInto>
+ <nextElementRef id="send_questionnaire_209" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;Questionnaire&gt;{/create_questionnaire/Questionnaire/*}&lt;/Questionnaire&gt;" />
+ <mapsTo>Questionnaire</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Public Relation$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="create_questionnaire" />
+ </task>
+ <task id="send_questionnaire_209">
+ <name>send questionnaire</name>
+ <flowsInto>
+ <nextElementRef id="questionnaire_sent_210" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Questionnaire&gt;{/InsuranceAgency/Questionnaire/*}&lt;/Questionnaire&gt;" />
+ <mapsTo>Questionnaire</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Public Relation$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="send_questionnaire" />
+ </task>
+ <task id="high-insurance_check_8">
+ <name>high-insurance check</name>
+ <flowsInto>
+ <nextElementRef id="NOK_16" />
+ <isDefaultFlow />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="high-medical_history_9" />
+ <predicate ordering="0">/InsuranceAgency/B/text()='true'</predicate>
+ </flowsInto>
+ <join code="xor" />
+ <split code="xor" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;B&gt;{/insurance_check/InsuranceCompliance/text()}&lt;/B&gt;" />
+ <mapsTo>B</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Insurance Agent A$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="insurance_check" />
+ </task>
+ <task id="AND_split1_12">
+ <name>AND split1</name>
+ <flowsInto>
+ <nextElementRef id="low-insurance_check_13" />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="low-medical_history_14" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <decomposesTo id="AND_split1" />
+ </task>
+ <condition id="questionnaire_sent_210">
+ <name>questionnaire sent</name>
+ <flowsInto>
+ <nextElementRef id="cancel_213" />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="receive_questionnaire_211" />
+ </flowsInto>
+ </condition>
+ <task id="high-medical_history_9">
+ <name>high-medical history</name>
+ <flowsInto>
+ <nextElementRef id="NOK_16" />
+ <isDefaultFlow />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="contact_hospital_10" />
+ <predicate ordering="0">/InsuranceAgency/B/text()='true'</predicate>
+ </flowsInto>
+ <join code="xor" />
+ <split code="xor" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;B&gt;{/medical_history/MedicalCompliance/text()}&lt;/B&gt;" />
+ <mapsTo>B</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Insurance Agent A$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="medical_history" />
+ </task>
+ <task id="cancel_213">
+ <name>cancel</name>
+ <flowsInto>
+ <nextElementRef id="join_214" />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="letter_sent_215" />
+ </flowsInto>
+ <join code="and" />
+ <split code="and" />
+ <decomposesTo id="cancel" />
+ </task>
+ <task id="NOK_16">
+ <name>NOK</name>
+ <flowsInto>
+ <nextElementRef id="send_letter_18" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;Package&gt;&lt;Answer&gt;Reject&lt;/Answer&gt; &lt;Message&gt;{/NOK/Package/text()}&lt;/Message&gt;&lt;/Package&gt;" />
+ <mapsTo>Package</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Public Relation$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="NOK" />
+ </task>
+ <task id="low-medical_history_14">
+ <name>low-medical history</name>
+ <flowsInto>
+ <nextElementRef id="AND_join1_15" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;C&gt;{/medical_history/MedicalCompliance/text()}&lt;/C&gt;" />
+ <mapsTo>C</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Insurance Agent B$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="medical_history" />
+ </task>
+ <task id="low-insurance_check_13">
+ <name>low-insurance check</name>
+ <flowsInto>
+ <nextElementRef id="AND_join1_15" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;B&gt;{/insurance_check/InsuranceCompliance/text()}&lt;/B&gt;" />
+ <mapsTo>B</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Insurance Agent B$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="insurance_check" />
+ </task>
+ <task id="receive_questionnaire_211">
+ <name>receive questionnaire</name>
+ <flowsInto>
+ <nextElementRef id="join_214" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Questionnaire&gt;{/InsuranceAgency/Questionnaire/*}&lt;/Questionnaire&gt;" />
+ <mapsTo>Questionnaire</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;Questionnaire&gt;{/receive_questionnaire/Questionnaire/*}&lt;/Questionnaire&gt;" />
+ <mapsTo>Questionnaire</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Public Relation$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="receive_questionnaire" />
+ </task>
+ <condition id="letter_sent_215">
+ <name>letter sent</name>
+ <flowsInto>
+ <nextElementRef id="archive_216" />
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="cancel_213" />
+ </flowsInto>
+ </condition>
+ <task id="AND_join1_15">
+ <name>AND join1</name>
+ <flowsInto>
+ <nextElementRef id="decide_11" />
+ </flowsInto>
+ <join code="and" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;MedicalHistory&gt;{/InsuranceAgency/C/text()}&lt;/MedicalHistory&gt;" />
+ <mapsTo>MedicalHistory</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;InsuranceCompliance&gt;{/InsuranceAgency/B/text()}&lt;/InsuranceCompliance&gt;" />
+ <mapsTo>InsuranceCompliance</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;DecisionInfo&gt;&lt;ClaimType&gt;Low&lt;/ClaimType&gt; &lt;InsuranceCompliance&gt;{/AND_join1/InsuranceCompliance/text()}&lt;/InsuranceCompliance&gt; &lt;MedicalHistoryCompliance&gt;{/AND_join1/MedicalHistory/text()}&lt;/MedicalHistoryCompliance&gt; &lt;HospitalInformation&gt;none&lt;/HospitalInformation&gt;&lt;/DecisionInfo&gt;" />
+ <mapsTo>DecisionInfo</mapsTo>
+ </mapping>
+ </completedMappings>
+ <decomposesTo id="AND_join1" />
+ </task>
+ <task id="contact_hospital_10">
+ <name>contact hospital</name>
+ <flowsInto>
+ <nextElementRef id="decide_11" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;DecisionInfo&gt;&lt;ClaimType&gt;High&lt;/ClaimType&gt; &lt;InsuranceCompliance&gt;true&lt;/InsuranceCompliance&gt; &lt;MedicalHistoryCompliance&gt;true&lt;/MedicalHistoryCompliance&gt; &lt;HospitalInformation&gt;{/contact_hospital/HospitalInfo/text()}&lt;/HospitalInformation&gt;&lt;/DecisionInfo&gt;" />
+ <mapsTo>DecisionInfo</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Insurance Agent A$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="contact_hospital" />
+ </task>
+ <task id="archive_216">
+ <name>archive</name>
+ <flowsInto>
+ <nextElementRef id="OutputCondition_2" />
+ </flowsInto>
+ <join code="and" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Claim&gt;{/InsuranceAgency/Claim/*}&lt;/Claim&gt;" />
+ <mapsTo>Claim</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Package&gt;{/InsuranceAgency/Package/*}&lt;/Package&gt;" />
+ <mapsTo>Package</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <decomposesTo id="archive" />
+ </task>
+ <task id="join_214">
+ <name>join</name>
+ <flowsInto>
+ <nextElementRef id="archive_216" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <decomposesTo id="join" />
+ </task>
+ <task id="send_letter_18">
+ <name>send letter</name>
+ <flowsInto>
+ <nextElementRef id="letter_sent_215" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Package&gt;{/InsuranceAgency/Package/*}&lt;/Package&gt;" />
+ <mapsTo>Package</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Public Relation$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="send_letter" />
+ </task>
+ <task id="decide_11">
+ <name>decide</name>
+ <flowsInto>
+ <nextElementRef id="NOK_16" />
+ <predicate ordering="0">/InsuranceAgency/AnswerType/text()='Reject'</predicate>
+ </flowsInto>
+ <flowsInto>
+ <nextElementRef id="OK_17" />
+ <isDefaultFlow />
+ </flowsInto>
+ <join code="xor" />
+ <split code="xor" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ <mapping>
+ <expression query="&lt;DecisionInfo&gt;{/InsuranceAgency/DecisionInfo/*}&lt;/DecisionInfo&gt;" />
+ <mapsTo>DecisionInfo</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;AnswerType&gt;{/decide/Answer/text()}&lt;/AnswerType&gt;" />
+ <mapsTo>AnswerType</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Manager$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="decide" />
+ </task>
+ <task id="OK_17">
+ <name>OK</name>
+ <flowsInto>
+ <nextElementRef id="send_letter_18" />
+ </flowsInto>
+ <join code="xor" />
+ <split code="and" />
+ <startingMappings>
+ <mapping>
+ <expression query="&lt;Client&gt;{/InsuranceAgency/Client/*}&lt;/Client&gt;" />
+ <mapsTo>Client</mapsTo>
+ </mapping>
+ </startingMappings>
+ <completedMappings>
+ <mapping>
+ <expression query="&lt;Package&gt;&lt;Answer&gt;Accept&lt;/Answer&gt; &lt;Amount&gt;{/OK/Amount/text()}&lt;/Amount&gt; &lt;Message&gt;{/OK/Package/text()}&lt;/Message&gt; &lt;/Package&gt;" />
+ <mapsTo>Package</mapsTo>
+ </mapping>
+ </completedMappings>
+ <enablementMappings>
+ <mapping>
+ <expression query="&lt;YawlResourceAllocationQuery&gt;select HResID from HResPerformsRole where RoleName =$apos;Manager$apos;&lt;/YawlResourceAllocationQuery&gt;" />
+ <mapsTo>YawlResourceAllocationQuery</mapsTo>
+ </mapping>
+ </enablementMappings>
+ <decomposesTo id="OK" />
+ </task>
+ <outputCondition id="OutputCondition_2">
+ <name>end</name>
+ </outputCondition>
+ </processControlElements>
+ </decomposition>
+ <decomposition id="decide" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>DecisionInfo</name>
+ <type>decisionInfo</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>Answer</name>
+ <type>answerType</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="medical_history" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>MedicalCompliance</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="create_questionnaire" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>Questionnaire</name>
+ <type>questionnaire</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="cancel" xsi:type="WebServiceGatewayFactsType" />
+ <decomposition id="AND_join1" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>InsuranceCompliance</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>MedicalHistory</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>MedicalHistory</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <outputParam>
+ <name>InsuranceCompliance</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ </decomposition>
+ <decomposition id="send_questionnaire" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Questionnaire</name>
+ <type>questionnaire</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="join" xsi:type="WebServiceGatewayFactsType" />
+ <decomposition id="NOK" xsi:type="WebServiceGatewayFactsType">
+ <outputParam>
+ <name>Package</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="register" xsi:type="WebServiceGatewayFactsType">
+ <outputParam>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <outputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="classify" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>ClaimType</name>
+ <type>claimType</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="receive_questionnaire" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Questionnaire</name>
+ <type>questionnaire</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>Questionnaire</name>
+ <type>questionnaire</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="OK" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>Amount</name>
+ <type>double</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <outputParam>
+ <name>Package</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="contact_hospital" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>HospitalInfo</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="insurance_check" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <outputParam>
+ <name>InsuranceCompliance</name>
+ <type>boolean</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </outputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ <decomposition id="AND_split1" xsi:type="WebServiceGatewayFactsType" />
+ <decomposition id="archive" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Package</name>
+ <type>package</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Claim</name>
+ <type>claim</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ </decomposition>
+ <decomposition id="send_letter" xsi:type="WebServiceGatewayFactsType">
+ <inputParam>
+ <name>Package</name>
+ <type>package</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <inputParam>
+ <name>Client</name>
+ <type>client</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </inputParam>
+ <enablementParam>
+ <name>YawlResourceAllocationQuery</name>
+ <type>string</type>
+ <namespace>http://www.w3.org/2001/XMLSchema</namespace>
+ </enablementParam>
+ </decomposition>
+ </specification>
+</specificationSet>
+
+