125 lines
6.2 KiB
XML

<?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="InputClause_01x5qqp" label="Process Model Id" biodi:width="349">
<inputExpression id="LiteralExpression_0m2cn7h" typeRef="string">
<text>"process_info["process_model_identifier"]</text>
</inputExpression>
</input>
<input id="InputClause_1cqeh6g" label="Task Id" biodi:width="178">
<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="532" />
<rule id="DecisionRule_05kyeu8">
<inputEntry id="UnaryTests_1bdf6i0">
<text>"execute-procure-to-pay/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_1wwhury">
<text>"execute-procure-to-pay/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_0g0vr80">
<text>"execute-procure-to-pay/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 Project Lead and Finance. It will be paid in the next pay run."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1fsmo6y">
<inputEntry id="UnaryTests_0gfys7d">
<text>"execute-procure-to-pay/cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_0br4fie">
<text>"waku_invoice_rejected-Project_Lead"</text>
</inputEntry>
<outputEntry id="LiteralExpression_19448fp">
<text>"Hi " + current_user_extras["first_name"] + ", your invoice has been rejected by your Project Lead. The reason specified for the rejection is: " + invoice.commentsProjectLead</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1jbtx5i">
<inputEntry id="UnaryTests_0hlthm5">
<text>"execute-procure-to-pay/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.commentsFinance</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0jirsd8">
<inputEntry id="UnaryTests_0i90dzr">
<text>"execute-procure-to-pay/cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_0f4sig0">
<text>"waku_notify_finance"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0ogytc4">
<text>"Finance, an invoice has been submitted and awaits your approval.\nSubmitted by: " + current_user_extras["full_name"]</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1jw4h85">
<inputEntry id="UnaryTests_0ecdfsh">
<text>"execute-procure-to-pay/cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_1ddqyad">
<text>"waku_notify_project_lead"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0cm3da4">
<text>"Project Lead, an invoice has been submitted and awaits your approval.\nSubmitted by: " + current_user_extras["full_name"]</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1sqor96">
<inputEntry id="UnaryTests_0j5tr8f">
<text>"execute-procure-to-pay/cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_0kn31ob">
<text>"waku_no_team_lead_response"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0y4rab0">
<text>"Hi " + current_user_extras["first_name"] + ", your invoice has been rejected. The reason specified for the rejection is: [" + invoice.commentsProjectLead + "]. Please get in touch with your Project Lead to discuss this further."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0zxv93p">
<inputEntry id="UnaryTests_0v20opd">
<text>"execute-procure-to-pay/cc-invoice-approval-process"</text>
</inputEntry>
<inputEntry id="UnaryTests_0j8l83a">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0pqtgnn">
<text>"Something is wrong. Contact Support"</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>