101 lines
4.7 KiB
Plaintext
Raw Normal View History

<?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">
<decision id="Waku_Messages_Message_Body" name="Waku Messages: Message Body">
<decisionTable id="decisionTable_1">
<input id="input_1" label="Process Group Id">
<inputExpression id="inputExpression_1" typeRef="string">
<text>process["group_id"]</text>
</inputExpression>
</input>
<input id="InputClause_01x5qqp" label="Process Model Id" biodi:width="201">
<inputExpression id="LiteralExpression_0m2cn7h" typeRef="string">
<text>process["model_id"]</text>
</inputExpression>
</input>
<input id="InputClause_1cqeh6g" label="Task Id" biodi:width="174">
<inputExpression id="LiteralExpression_0ioto2j" typeRef="string">
<text>task_id</text>
</inputExpression>
</input>
<output id="output_1" label="Message Body" name="waku_message_body" typeRef="string" biodi:width="494" />
<rule id="DecisionRule_05kyeu8">
<inputEntry id="UnaryTests_15c8pim">
<text>"execute-procure-to-pay"</text>
</inputEntry>
<inputEntry id="UnaryTests_1bdf6i0">
<text>"cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_1w8fhi9">
<text>"waku_invoice_submitted"</text>
</inputEntry>
<outputEntry id="LiteralExpression_1h5ezs8">
<text>"Thanks for submitting your invoice " + current_user_extras["first_name"] + ". We will keep you updated on the next steps."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1tbh4zu">
<inputEntry id="UnaryTests_04tnai4">
<text>"execute-procure-to-pay"</text>
</inputEntry>
<inputEntry id="UnaryTests_1wwhury">
<text>"cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_09sdx7c">
<text>"waku_payment_pending_ismatch"</text>
</inputEntry>
<outputEntry id="LiteralExpression_1v5nnup">
<text>"Hi " + current_user_extras["first_name"] + ", your invoice has been approved by Finance. It will be paid in the next pay run."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1f99vwz">
<inputEntry id="UnaryTests_168cp73">
<text>"execute-procure-to-pay"</text>
</inputEntry>
<inputEntry id="UnaryTests_0g0vr80">
<text>"cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_1m5ktce">
<text>"waku_payment_pending_not_ismatch"</text>
</inputEntry>
<outputEntry id="LiteralExpression_1yus5ql">
<text>"Hi " + current_user_extras["first_name"] + ", your invoice has been approved by your Team Lead and Finance. It will be paid in the next pay run."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1fsmo6y">
<inputEntry id="UnaryTests_131earw">
<text>"execute-procure-to-pay"</text>
</inputEntry>
<inputEntry id="UnaryTests_0gfys7d">
<text>"cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_0br4fie">
<text>"waku_invoice_rejected-Team_Lead"</text>
</inputEntry>
<outputEntry id="LiteralExpression_19448fp">
<text>"Hi " + current_user_extras["first_name"] + ", your invoice has been rejected by your Team Lead. The reason specified for the rejection is: [" + invoice.commentTeamLead</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1jbtx5i">
<inputEntry id="UnaryTests_05h6dch">
<text>"execute-procure-to-pay"</text>
</inputEntry>
<inputEntry id="UnaryTests_0hlthm5">
<text>"cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_1hnyfo7">
<text>"waku_invoice_rejected-Finance"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0eqnx58">
<text>"Hi " + current_user_extras["first_name"] + ", your invoice has been rejected by Finance. The reason specified for the rejection is: [" + invoice.commentFinance</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="Waku_Messages_Message_Body">
<dc:Bounds height="80" width="180" x="157" y="151" />
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>