mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-20 11:48:21 +00:00
User: alex clicked save for documentation/submit-invoice/submit-invoice1.bpmn
This commit is contained in:
parent
c9e8f081b8
commit
3e633ff00a
@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
|
||||
<decision id="decision_table" name="decision_table">
|
||||
<decisionTable id="decisionTable_1">
|
||||
<input id="input_1" label="question">
|
||||
<inputExpression id="inputExpression_1" typeRef="string">
|
||||
<text>question</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" label="Answer" name="answer" typeRef="string" />
|
||||
<rule id="DecisionRule_0q751jh">
|
||||
<inputEntry id="UnaryTests_0etz9ah">
|
||||
<text>"X"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1glqaro">
|
||||
<text>"Y"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0fkmbpp">
|
||||
<inputEntry id="UnaryTests_1u0ex1a">
|
||||
<text>"A"</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0twqhz2">
|
||||
<text>"B"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1m4213a">
|
||||
<inputEntry id="UnaryTests_0z7qrm1">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_085ofdi">
|
||||
<text>"Something is wrog"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="decision_table">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
36
documentation/submit-invoice/check-amounts.dmn
Normal file
36
documentation/submit-invoice/check-amounts.dmn
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_76910d7" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.5.0">
|
||||
<decision id="Check_Amount_Documentation_Submit_Invoice" name="Check Amount">
|
||||
<decisionTable id="decisionTable_1">
|
||||
<input id="input_1" label="Does Invocie = Monthly Salary" biodi:width="323">
|
||||
<inputExpression id="inputExpression_1" typeRef="number">
|
||||
<text>(annual_salary/12)/invoiceAmount</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" label="Match?" name="isMatch" typeRef="boolean" />
|
||||
<rule id="DecisionRule_0ah107s">
|
||||
<inputEntry id="UnaryTests_0gg1aer">
|
||||
<text>1</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_19zcbe4">
|
||||
<text>True</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_15twpuo">
|
||||
<inputEntry id="UnaryTests_0dfj2ye">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1q8d6vy">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="Check_Amount_Documentation_Submit_Invoice">
|
||||
<dc:Bounds height="80" width="180" x="157" y="81" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
@ -67,7 +67,7 @@ annual_salary = float(annual_salary_str)</bpmn:script>
|
||||
<bpmn:sequenceFlow id="Flow_1wgjnl6" sourceRef="Activity_1t2wqtp" targetRef="Event_13o3qhm" />
|
||||
<bpmn:businessRuleTask id="Activity_1t2wqtp" name="Check Match?">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:calledDecisionId>decision_table</spiffworkflow:calledDecisionId>
|
||||
<spiffworkflow:calledDecisionId></spiffworkflow:calledDecisionId>
|
||||
<spiffworkflow:preScript>invoiceAmount = 10000</spiffworkflow:preScript>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1fide0x</bpmn:incoming>
|
||||
|
Loading…
x
Reference in New Issue
Block a user