\subsection{Workflow process PartyParty}

\begin {center}
  \includegraphics[width=\textwidth]{YAWL_PartyParty.png} \\
\end {center}

\subsubsection{Datatypes}

\begin{verbatim}
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:complexType name="Order_specifications">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Customer_specifications">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
	<xs:element name="Name" type="xs:string"/>
	<xs:element name="Address" type="xs:string"/>
	<xs:element name="Code" type="xs:string"/>
	<xs:element name="City" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Order_Pick_List">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
	<xs:element name="OrderID" type="xs:long"/>
	<xs:element name="OrderComplete" type="OrderCompleteType"/>
	<xs:element name="OrderInspection" type="OrderInspectionType"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Inspect_Goods_List">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
	<xs:element name="OrderID" type="xs:long"/>
	<xs:element name="GoodsInspection" type="GoodsInspectionType"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Fine">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
	<xs:element name="OrderID" type="xs:long"/>
	<xs:element name="TimesSent" type="xs:long"/>
	<xs:element name="FinePayed" type="xs:boolean"/>
	<xs:element name="FineAmount" type="xs:decimal"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Bill">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
	<xs:element name="TimesSent" type="xs:long"/>
	<xs:element name="BillPayed" type="xs:boolean"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Logistics_plan">
    <xs:sequence>
	<xs:element name="ID" type="xs:long"/>
	<xs:element name="OrderID" type="xs:long"/>
	<xs:element name="Transport" type="TransportType"/>	
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="OrderCompleteType">
	<xs:restriction base="xs:string">
		<xs:enumeration value="Order Complete"/>
		<xs:enumeration value="Order not Complete"/>
	</xs:restriction>
   </xs:simpleType>

  <xs:simpleType name="OrderInspectionType">
	<xs:restriction base="xs:string">
		<xs:enumeration value="Order Accepted"/>
		<xs:enumeration value="Order Disapproved"/>
	</xs:restriction>
   </xs:simpleType>

  <xs:simpleType name="GoodsInspectionType">
	<xs:restriction base="xs:string">
		<xs:enumeration value="Goods in good shape"/>
		<xs:enumeration value="Goods Damaged"/>
	</xs:restriction>
   </xs:simpleType>

  <xs:simpleType name="TransportType">
	<xs:restriction base="xs:string">
		<xs:enumeration value="Hire Truck"/>
		<xs:enumeration value="Take own Van"/>
	</xs:restriction>
   </xs:simpleType>
</xs:schema>
\end{verbatim}

\subsubsection{Design Constructs}
\begin{list}{-}
  \item Confirm logistics can only be executed after the order is paid.
  \item The order will be cancelled when the bill isn't paid after being sent three times.
  \item After if the fine is sent more that one time, the amount will be increased with 5\%.
  \item The company will get paid by lawsuit when the fine isn't paid and sent three times.
\end{list}
