From ea79150149a62086c21d5d201ef08c348397d83b Mon Sep 17 00:00:00 2001 From: demo Date: Mon, 7 Nov 2022 16:15:58 +0000 Subject: [PATCH] User: alex clicked save for execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn --- .../cc-invoice-approval-process-v2.bpmn | 51 ++++++++---- mike/simple-script/simple_script.bpmn | 77 +++++++++++++++++++ mike/simple-script/workflow.json | 13 ++++ 3 files changed, 125 insertions(+), 16 deletions(-) create mode 100644 mike/simple-script/simple_script.bpmn create mode 100644 mike/simple-script/workflow.json diff --git a/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn b/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn index 1761b476..9a32c816 100644 --- a/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn +++ b/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn @@ -533,10 +533,36 @@ _**Due Date:**_ {{ invoice.dueDate}} # Set who for find find_user = userKeycloak isCurrentUser = False - + # Set Project Lead Info +project_lead_info = {} +project_lead_info["full_name"] = userFullName +project_lead_info["first_name"] = userFirstName +project_lead_info["email"] = userEmail +project_lead_info["time_zone"] = userTimeZone +project_lead_info["time_format"] = userTimeFormat +project_lead_info["date_format"] = userDateFormat +project_lead_info["status_key"] = userStatusKey + +# Move to pre-script of Waku Message +# Set Time Zone +time_zone = project_lead_info["time_zone"] + +# Set Time Format +time_format = project_lead_info["time_format"] + +# Set Date Format +time_format = project_lead_info["date_format"] + +del(userFullName) +del(userFirstName) +del(userEmail) +del(userTimeZone) +del(userTimeFormat) +del(userDateFormat) +del(userStatusKey) Flow_0bv17h4 - Flow_09jcr0u + Flow_1jor3kc @@ -557,12 +583,10 @@ isCurrentUser = False task_id = "waku_notify_project_lead" isSetMessage = True - Flow_0c20bae + Flow_1jor3kc Flow_0re50gq - Flow_09jcr0u - Flow_0c20bae # Set Project Lead Info project_lead_info = {} project_lead_info["full_name"] = userFullName @@ -610,8 +634,7 @@ isCurrentUser = False - - + Flow_1qf14hx @@ -1574,10 +1597,6 @@ invoice["invoiceCurrency"] = "AUD" - - - - @@ -1588,6 +1607,10 @@ invoice["invoiceCurrency"] = "AUD" + + + + @@ -1608,12 +1631,8 @@ invoice["invoiceCurrency"] = "AUD" - + - - - - diff --git a/mike/simple-script/simple_script.bpmn b/mike/simple-script/simple_script.bpmn new file mode 100644 index 00000000..c101124d --- /dev/null +++ b/mike/simple-script/simple_script.bpmn @@ -0,0 +1,77 @@ + + + + + Flow_0kdd8x0 + + + + + + Flow_09k4m7l + + + + Flow_0kdd8x0 + Flow_1xp2da5 + a = 1 +b = 2 + + + Flow_1xp2da5 + Flow_1wa446t + c = a + b + + + + ## Data +### A +{{ a }} +## B +{{ b }} +## C +{{ c }} + + Flow_1wa446t + Flow_09k4m7l + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mike/simple-script/workflow.json b/mike/simple-script/workflow.json new file mode 100644 index 00000000..5043b17c --- /dev/null +++ b/mike/simple-script/workflow.json @@ -0,0 +1,13 @@ +{ + "description": "Simple Script", + "display_name": "Simple Script", + "display_order": 2, + "exception_notification_addresses": [], + "fault_or_suspend_on_exception": "fault", + "files": [], + "id": "simple-script", + "is_review": false, + "primary_file_name": "simple_script.bpmn", + "primary_process_id": "Proccess_SimpleScript", + "process_group_id": "mike" +} \ No newline at end of file