copy mvp to new location
This commit is contained in:
parent
422636052a
commit
b9a37b9078
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"title": "Invoice Information",
|
||||
"description": "Submitted by: {{ invoice.contributorName }}<br> Contributor Id: {{ invoice.contributorId }}<br> Invoice Id: {{ invoice.invoiceId }} Invoice Amount: {{ invoice.invoiceAmount }} Select Currency: {{ invoice.invoiceCurrency }} Due Date: {{ invoice.dueDate }} Project Lead Comments: {{ invoice.commentsProjectLead }}",
|
||||
"type": "object"
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"definitions": {
|
||||
"currencyEnum": {
|
||||
"title": "Currency",
|
||||
"type": "string",
|
||||
"anyOf": [
|
||||
"options_from_task_data_var:enumerations_list"
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [
|
||||
"filesAccept"
|
||||
],
|
||||
"properties": {
|
||||
"invoice": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"contributorName",
|
||||
"contributorId",
|
||||
"invoiceId",
|
||||
"invoiceAmount",
|
||||
"invoiceCurrency",
|
||||
"dueDate"
|
||||
],
|
||||
"title": "",
|
||||
"properties": {
|
||||
"contributorName": {
|
||||
"type": "string",
|
||||
|
||||
"title": "Contributor Name"
|
||||
},
|
||||
|
||||
"contributorId": {
|
||||
"type": "integer",
|
||||
"title": "Contributor Id",
|
||||
"minLength": 2
|
||||
},
|
||||
"invoiceId": {
|
||||
"type": "integer",
|
||||
"title": "Invoice Id",
|
||||
"minLength": 4
|
||||
},
|
||||
"invoiceAmount": {
|
||||
"type": "number",
|
||||
"title": "Invoice Amount"
|
||||
},
|
||||
"invoiceCurrency": {
|
||||
"$ref": "#/definitions/currencyEnum",
|
||||
"title": "Select Currency"
|
||||
},
|
||||
"dueDate": {
|
||||
"type": "string",
|
||||
"title": "Due Date"
|
||||
}
|
||||
}
|
||||
},
|
||||
"filesAccept": {
|
||||
"type": "string",
|
||||
"format": "data-url",
|
||||
"title": "Upload Invoice PDF"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"invoice": {
|
||||
"contributorName": {
|
||||
"ui:autofocus": true,
|
||||
"ui:emptyValue": "",
|
||||
"ui:placeholder": "First and Last Name"
|
||||
},
|
||||
"contributorId": {
|
||||
"ui:placeholder": "Employee or Vendor ID"
|
||||
},
|
||||
"invoiceId": {
|
||||
"ui:placeholder": "Enter the Status Invoice ID found in the upper left of the PDF to be uploaded"
|
||||
},
|
||||
"invoiceAmount": {
|
||||
"ui:placeholder": "Based on available currencies"
|
||||
},
|
||||
"invoiceCurrency": {
|
||||
"ui:placeholder": "Select payment currency"
|
||||
},
|
||||
"dueDate": {
|
||||
"ui:widget": "date",
|
||||
"ui:placeholder": "Invoices submitted before the 15th of the month will be paided on the 25th"
|
||||
},
|
||||
"ui:order": [
|
||||
"contributorName",
|
||||
"contributorId",
|
||||
"invoiceId",
|
||||
"invoiceAmount",
|
||||
"invoiceCurrency",
|
||||
"dueDate"
|
||||
]
|
||||
},
|
||||
"filesAccept": {
|
||||
"ui:help": "Click here to select file to upload",
|
||||
"ui:options": {
|
||||
"accept": ".pdf"
|
||||
}
|
||||
},
|
||||
"ui:order": [
|
||||
"invoice",
|
||||
"filesAccept"
|
||||
]
|
||||
}
|
|
@ -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">
|
||||
<decision id="Invoice_Approval_Check" name="Invoice Approval Check">
|
||||
<decisionTable id="decisionTable_1">
|
||||
<input id="input_1" label="Annual Salary/12 = Invoice Amount?" biodi:width="315">
|
||||
<inputExpression id="inputExpression_1" typeRef="number">
|
||||
<text>(annual_salary/12)/invoice_amount</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" label="Match?" name="isMatch" typeRef="boolean" />
|
||||
<rule id="DecisionRule_1pdl1wj">
|
||||
<inputEntry id="UnaryTests_1i2h92p">
|
||||
<text>1</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_00pfc7a">
|
||||
<text>True</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1qx42vm">
|
||||
<inputEntry id="UnaryTests_02qe20q">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_05ky601">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="Invoice_Approval_Check">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"title": "Submit Invoice",
|
||||
"description": "Configuration options for submitting an invoice.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ValidationChoices": {
|
||||
"type": "array",
|
||||
"title": "Select validation options",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
" Number in contributor name",
|
||||
" Too many decimals in invoice amount",
|
||||
" Due date before today's date"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"scenarioChoices": {
|
||||
"type": "string",
|
||||
"title": "Select Currency",
|
||||
"enum": [
|
||||
" Correct invoice amount",
|
||||
" incorrect invoice amount"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"scenarioChoices": {
|
||||
"ui:widget": "radio",
|
||||
"ui:help": " ",
|
||||
"ui:options": {
|
||||
"inline": false
|
||||
}
|
||||
},
|
||||
"ValidationChoices": {
|
||||
"ui:widget": "checkboxes",
|
||||
"ui:help": " "
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isInvoiceApproved": {
|
||||
"type": "boolean",
|
||||
"title": "Approve?"
|
||||
},
|
||||
"approvalComment": {
|
||||
"type": "string",
|
||||
"title": "Approval Comment"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"isInvoiceApproved": {
|
||||
"ui:autofocus": true,
|
||||
"ui:widget": "radio",
|
||||
"ui:help": "Select Yes to approve, No to reject"
|
||||
},
|
||||
"approvalComment": {
|
||||
"ui:widget": "textarea",
|
||||
"ui:help": "Enter comments related to approval or rejection here"
|
||||
},
|
||||
"ui:order": [
|
||||
"isInvoiceApproved",
|
||||
"approvalComment"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"description": "Invoice Approval",
|
||||
"display_name": "Invoice Approval",
|
||||
"display_order": 0,
|
||||
"exception_notification_addresses": [],
|
||||
"fault_or_suspend_on_exception": "fault",
|
||||
"files": [],
|
||||
"is_review": false,
|
||||
"primary_file_name": "cc-invoice-approval-process-v2.bpmn",
|
||||
"primary_process_id": "Process_cc_invoice_approval_process_v2_a"
|
||||
}
|
|
@ -0,0 +1,177 @@
|
|||
<?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="Submit_Involce_Validation" name="Submit Involce Validation">
|
||||
<decisionTable id="decisionTable_1">
|
||||
<input id="input_1" label="Number in Name?">
|
||||
<inputExpression id="inputExpression_1" typeRef="boolean">
|
||||
<text>svc_is_num_in_name</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<input id="InputClause_0yu8sal" label="Invoice Amount Decimal Places?" biodi:width="290">
|
||||
<inputExpression id="LiteralExpression_00vxuvt" typeRef="number">
|
||||
<text>svc_decimal_cnt</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<input id="InputClause_0d8pwgu" label="Due Date After?">
|
||||
<inputExpression id="LiteralExpression_0ji7ayg" typeRef="boolean">
|
||||
<text>svc_is_due_date_after</text>
|
||||
</inputExpression>
|
||||
</input>
|
||||
<output id="output_1" label="Validation Outcome" name="svc_is_invoice_submit_pass" typeRef="boolean" />
|
||||
<output id="OutputClause_1kwdp3o" label="Validation Message" name="submitInvoiceValidationMessage" typeRef="string" biodi:width="496" />
|
||||
<rule id="DecisionRule_1lo9qbk">
|
||||
<inputEntry id="UnaryTests_1nhzb74">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1k6u17q">
|
||||
<text><=2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1g1c3pq">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0nllohu">
|
||||
<text>True</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_1deujhc">
|
||||
<text>"No numbers in name, involce amount decimal places not greated than two, invoice due date after today's date"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0fspdx3">
|
||||
<inputEntry id="UnaryTests_1t84tf5">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_12mqm10">
|
||||
<text><=2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_02k712g">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1lb6oh8">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0574dis">
|
||||
<text>"""**Validation Error:**
|
||||
- Numbers are not allowed in the Contributor's Name """</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_143lm93">
|
||||
<inputEntry id="UnaryTests_03cd5lg">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_02u9iam">
|
||||
<text>>2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_061ri1c">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1mbfz4b">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0fn0pln">
|
||||
<text>"""**Validation error:**
|
||||
- The involce amount must not have more than two decimal places """</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0u8ubah">
|
||||
<inputEntry id="UnaryTests_1foeufx">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_0f6hqwy">
|
||||
<text>>2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_12dplyn">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_085lex0">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0db07fz">
|
||||
<text>"""**Validation errors:**
|
||||
- Numbers are not allowed in the Contributor's Name
|
||||
- The involce amount must not have more than two decimal places """</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1jc37dk">
|
||||
<inputEntry id="UnaryTests_1pgm4hk">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_13kykmb">
|
||||
<text><=2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1bsp4mb">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1rwhn23">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_087snw9">
|
||||
<text>"""**Validation error:**
|
||||
- The invoice due date must be after today's date. """</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0nec3r1">
|
||||
<inputEntry id="UnaryTests_0qc9563">
|
||||
<text>True</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_0nfh2th">
|
||||
<text>>2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1owttdo">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_12bkrav">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_0ibz84h">
|
||||
<text>"""**Validation errors:**
|
||||
- Numbers are not allowed in the Contributor's Name
|
||||
- The involce amount must not have more than two decimal places
|
||||
- The invoice due date must be after today's date. """</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_1gt9lgg">
|
||||
<inputEntry id="UnaryTests_14v9g6u">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_0awikna">
|
||||
<text>>2</text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1xb650e">
|
||||
<text>False</text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_1ua958p">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_19wowp7">
|
||||
<text>"""**Validation errors:**
|
||||
- The involce amount must not have more than two decimal places
|
||||
- The invoice due date must be after today's date. """</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
<rule id="DecisionRule_0vgovf5">
|
||||
<inputEntry id="UnaryTests_0qil3im">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1o5b92b">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<inputEntry id="UnaryTests_1cdqgc5">
|
||||
<text></text>
|
||||
</inputEntry>
|
||||
<outputEntry id="LiteralExpression_0s3k5pm">
|
||||
<text>False</text>
|
||||
</outputEntry>
|
||||
<outputEntry id="LiteralExpression_1565cvg">
|
||||
<text>"Something is wrong with the Invoice validation process. Please notify support"</text>
|
||||
</outputEntry>
|
||||
</rule>
|
||||
</decisionTable>
|
||||
</decision>
|
||||
<dmndi:DMNDI>
|
||||
<dmndi:DMNDiagram id="DMNDiagram_1cykosu">
|
||||
<dmndi:DMNShape id="DMNShape_1dhfq2s" dmnElementRef="Submit_Involce_Validation">
|
||||
<dc:Bounds height="80" width="180" x="157" y="151" />
|
||||
</dmndi:DMNShape>
|
||||
</dmndi:DMNDiagram>
|
||||
</dmndi:DMNDI>
|
||||
</definitions>
|
Loading…
Reference in New Issue