📄 business_example.xpdl
字号:
<?xml version="1.0" encoding="UTF-8"?><xpdl:Package Id="Business_Example" Name="Business Example" xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wfmc.org/2002/XPDL1.0 http://wfmc.org/standards/docs/TC-1025_schema_10_xpdl.xsd"> <xpdl:PackageHeader> <xpdl:XPDLVersion>1.0</xpdl:XPDLVersion> <xpdl:Vendor>Together</xpdl:Vendor> <xpdl:Created>13-03-2003</xpdl:Created> <xpdl:Description>This is a modified part of WfMC example from document WfMC TC-1016-X - "Interface 1: Process Definition Interchange Q&A and Examples"</xpdl:Description> </xpdl:PackageHeader> <xpdl:RedefinableHeader PublicationStatus="UNDER_TEST"/> <xpdl:ConformanceClass GraphConformance="NON_BLOCKED"/> <xpdl:Script Type="text/javascript"/> <xpdl:ExternalPackages> <xpdl:ExternalPackage href="Participant_Repository.xpdl"> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="EXTERNAL_PACKAGE_ID" Value="Participant_Repository"/> </xpdl:ExtendedAttributes> </xpdl:ExternalPackage> <xpdl:ExternalPackage href="Application_Repository.xpdl"> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="EXTERNAL_PACKAGE_ID" Value="Application_Repository"/> </xpdl:ExtendedAttributes> </xpdl:ExternalPackage> <xpdl:ExternalPackage href="Process_Repository.xpdl"> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="EXTERNAL_PACKAGE_ID" Value="Process_Repository"/> </xpdl:ExtendedAttributes> </xpdl:ExternalPackage> </xpdl:ExternalPackages> <xpdl:TypeDeclarations> <xpdl:TypeDeclaration Id="Business_Example_Typ1" Name="Stock Status"> <xpdl:EnumerationType> <xpdl:EnumerationValue Name="ALL"/> <xpdl:EnumerationValue Name="PARTIAL"/> <xpdl:EnumerationValue Name="NONE"/> </xpdl:EnumerationType> </xpdl:TypeDeclaration> <xpdl:TypeDeclaration Id="Business_Example_Typ2" Name="Status"> <xpdl:EnumerationType> <xpdl:EnumerationValue Name="OK"/> <xpdl:EnumerationValue Name="NOT_OK"/> </xpdl:EnumerationType> </xpdl:TypeDeclaration> </xpdl:TypeDeclarations> <xpdl:WorkflowProcesses> <xpdl:WorkflowProcess AccessLevel="PUBLIC" Id="Business_Example_Wor1" Name="Sales Order Processing"> <xpdl:ProcessHeader DurationUnit="D"> <xpdl:Created>13-03-2003</xpdl:Created> </xpdl:ProcessHeader> <xpdl:RedefinableHeader PublicationStatus="UNDER_TEST"/> <xpdl:DataFields> <xpdl:DataField Id="Stock_Status" IsArray="FALSE"> <xpdl:DataType> <xpdl:DeclaredType Id="Business_Example_Typ1"/> </xpdl:DataType> <xpdl:InitialValue>ALL</xpdl:InitialValue> <xpdl:Description>Stock status of ordered item (possible values are: "ALL", "PARTIAL" and "NONE")</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="Credit_Status" IsArray="FALSE"> <xpdl:DataType> <xpdl:DeclaredType Id="Business_Example_Typ2"/> </xpdl:DataType> <xpdl:InitialValue>NOT_OK</xpdl:InitialValue> <xpdl:Description>Current credit status of customer that made an order ("OK" if credit status is valid)</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="Partial_Ship_Status" IsArray="FALSE"> <xpdl:DataType> <xpdl:DeclaredType Id="Business_Example_Typ2"/> </xpdl:DataType> <xpdl:InitialValue>OK</xpdl:InitialValue> <xpdl:Description>possible values are: "OK" and "NOT_OK"</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="No_Of_Stocked_Items" IsArray="FALSE"> <xpdl:DataType> <xpdl:BasicType Type="INTEGER"/> </xpdl:DataType> <xpdl:InitialValue>0</xpdl:InitialValue> <xpdl:Description>The number of the stocked items of the product that customer ordered</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="Customer_Name" IsArray="FALSE"> <xpdl:DataType> <xpdl:BasicType Type="STRING"/> </xpdl:DataType> <xpdl:Description>The name of the customer (organization) which order is received</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="Product_Name" IsArray="FALSE"> <xpdl:DataType> <xpdl:BasicType Type="STRING"/> </xpdl:DataType> <xpdl:Description>The name of product that customer ordered</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="Order_Quantity" IsArray="FALSE"> <xpdl:DataType> <xpdl:BasicType Type="INTEGER"/> </xpdl:DataType> <xpdl:InitialValue>0</xpdl:InitialValue> <xpdl:Description>The number of ordered items</xpdl:Description> </xpdl:DataField> <xpdl:DataField Id="No_Of_Items_To_Produce" IsArray="FALSE"> <xpdl:DataType> <xpdl:BasicType Type="INTEGER"/> </xpdl:DataType> <xpdl:InitialValue>0</xpdl:InitialValue> </xpdl:DataField> </xpdl:DataFields> <xpdl:ActivitySets> <xpdl:ActivitySet Id="Business_Example_Wor1_Ase1"> <xpdl:Activities> <xpdl:Activity Id="ship" Name="ship"> <xpdl:Description>Ship from stock or production</xpdl:Description> <xpdl:Implementation> <xpdl:No/> </xpdl:Implementation> <xpdl:Performer>Participant_Repository_Par13</xpdl:Performer> <xpdl:StartMode> <xpdl:Automatic/> </xpdl:StartMode> <xpdl:FinishMode> <xpdl:Automatic/> </xpdl:FinishMode> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_OFFSET" Value="226,86"/> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_PARTICIPANT_ID" Value="Participant_Repository_Par13"/> <xpdl:ExtendedAttribute Name="VariableToProcess_IN" Value="Customer_Name"/> </xpdl:ExtendedAttributes> </xpdl:Activity> <xpdl:Activity Id="received_in_good_condition" Name="received in good condition"> <xpdl:Description>Report to the manager if the items are received in good condition</xpdl:Description> <xpdl:Implementation> <xpdl:No/> </xpdl:Implementation> <xpdl:Performer>Participant_Repository_Par13</xpdl:Performer> <xpdl:StartMode> <xpdl:Automatic/> </xpdl:StartMode> <xpdl:FinishMode> <xpdl:Automatic/> </xpdl:FinishMode> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_OFFSET" Value="382,86"/> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_PARTICIPANT_ID" Value="Participant_Repository_Par13"/> </xpdl:ExtendedAttributes> </xpdl:Activity> </xpdl:Activities> <xpdl:Transitions> <xpdl:Transition From="ship" Id="Business_Example_Wor1_Ase1_Tra2" Name="Transition" To="received_in_good_condition"> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_TRANSITION_STYLE" Value="NO_ROUTING_ORTHOGONAL"/> </xpdl:ExtendedAttributes> </xpdl:Transition> </xpdl:Transitions> </xpdl:ActivitySet> </xpdl:ActivitySets> <xpdl:Activities> <xpdl:Activity Id="Business_Example_Wor1_Act1" Name="receive order"> <xpdl:Description>Enter the data for current order (Customer name, the product name and the desired number of product items)</xpdl:Description> <xpdl:Implementation> <xpdl:No/> </xpdl:Implementation> <xpdl:Performer>Participant_Repository_Par11</xpdl:Performer> <xpdl:StartMode> <xpdl:Automatic/> </xpdl:StartMode> <xpdl:FinishMode> <xpdl:Automatic/> </xpdl:FinishMode> <xpdl:Icon>document.png</xpdl:Icon> <xpdl:ExtendedAttributes> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_OFFSET" Value="229,12"/> <xpdl:ExtendedAttribute Name="JaWE_GRAPH_PARTICIPANT_ID" Value="Participant_Repository_Par11"/> <xpdl:ExtendedAttribute Name="VariableToProcess_OUT" Value="Customer_Name"/> <xpdl:ExtendedAttribute Name="VariableToProcess_OUT" Value="Product_Name"/> <xpdl:ExtendedAttribute Name="VariableToProcess_OUT" Value="Order_Quantity"/> </xpdl:ExtendedAttributes> </xpdl:Activity> <xpdl:Activity Id="Business_Example_Wor1_Act3" Name="check finances"> <xpdl:Description>Credit-checking process</xpdl:Description> <xpdl:Implementation> <xpdl:SubFlow Execution="SYNCHR" Id="Business_Example_Wor3"> <xpdl:ActualParameters> <xpdl:ActualParameter>Customer_Name</xpdl:ActualParameter> <xpdl:ActualParameter>Product_Name</xpdl:ActualParameter> <xpdl:ActualParameter>Order_Quantity</xpdl:ActualParameter> <xpdl:ActualParameter>Credit_Status</xpdl:ActualParameter> </xpdl:ActualParameters> </xpdl:SubFlow> </xpdl:Implementation> <xpdl:StartMode>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -