From 8438eecac6b1fe9ab44bfb541bab10090a8efee3 Mon Sep 17 00:00:00 2001 From: burnettk Date: Wed, 27 Mar 2024 12:37:23 -0400 Subject: [PATCH] add approval model and nelson --- configs/permissions/local_development.yml | 7 +- .../basic-approval/approval-exampledata.json | 1 + .../basic-approval/approval-schema.json | 15 ++ .../basic-approval/approval-uischema.json | 1 + .../basic-approval/basic-approval.bpmn | 135 ++++++++++++++++++ .../basic-approval/process_model.json | 9 ++ process_models/approvals/process_group.json | 5 + 7 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 process_models/approvals/basic-approval/approval-exampledata.json create mode 100644 process_models/approvals/basic-approval/approval-schema.json create mode 100644 process_models/approvals/basic-approval/approval-uischema.json create mode 100644 process_models/approvals/basic-approval/basic-approval.bpmn create mode 100644 process_models/approvals/basic-approval/process_model.json create mode 100644 process_models/approvals/process_group.json diff --git a/configs/permissions/local_development.yml b/configs/permissions/local_development.yml index 12c7cdd..3842f00 100644 --- a/configs/permissions/local_development.yml +++ b/configs/permissions/local_development.yml @@ -4,6 +4,11 @@ users: email: admin@spiffworkflow.org password: admin preferred_username: Admin + nelson: + service: local_open_id + email: nelson@example.com + password: nelson + preferred_username: Nelson patrick: service: local_open_id email: patrick@example.com @@ -17,7 +22,7 @@ users: groups: admin: - users: [admin@spiffworkflow.org, patrick@example.com] + users: [admin@spiffworkflow.org, nelson@example.com, patrick@example.com] testing: users: [testing@example.com] diff --git a/process_models/approvals/basic-approval/approval-exampledata.json b/process_models/approvals/basic-approval/approval-exampledata.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/process_models/approvals/basic-approval/approval-exampledata.json @@ -0,0 +1 @@ +{} diff --git a/process_models/approvals/basic-approval/approval-schema.json b/process_models/approvals/basic-approval/approval-schema.json new file mode 100644 index 0000000..2405a4f --- /dev/null +++ b/process_models/approvals/basic-approval/approval-schema.json @@ -0,0 +1,15 @@ +{ + "title": "Do you approve?", + "description": "Let us know what you think about this request", + "type": "object", + "required": [], + "properties": { + "is_approved": { + "type": "boolean", + "title": "Approve?" + }, + "comments": { + "type": "string" + } + } +} diff --git a/process_models/approvals/basic-approval/approval-uischema.json b/process_models/approvals/basic-approval/approval-uischema.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/process_models/approvals/basic-approval/approval-uischema.json @@ -0,0 +1 @@ +{} diff --git a/process_models/approvals/basic-approval/basic-approval.bpmn b/process_models/approvals/basic-approval/basic-approval.bpmn new file mode 100644 index 0000000..1b7580b --- /dev/null +++ b/process_models/approvals/basic-approval/basic-approval.bpmn @@ -0,0 +1,135 @@ + + + + + + + + + Activity_1m7ezna + Gateway_did_approve + EndEvent_1 + Event_1y0249o + Activity_1c22616 + + + StartEvent_1 + Activity_0qpzdpu + + + + Flow_17db3yp + + + + This is a request for something. What it is, who knows. You could make a form for that in a more complete example. + + Flow_17db3yp + Flow_12pkbxb + + + + + + + + + + + Flow_12pkbxb + Flow_1cxor6o + + + Flow_1cxor6o + Flow_0axwlk2 + Flow_0yhphwi + + + is_approved == True + + + + + The process instance completed successfully. + + Flow_1nv6x7q + + + + Flow_0yhphwi + + + + By the way, you approved. It will all be on you. + + Flow_0axwlk2 + Flow_1nv6x7q + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/process_models/approvals/basic-approval/process_model.json b/process_models/approvals/basic-approval/process_model.json new file mode 100644 index 0000000..bccfa8f --- /dev/null +++ b/process_models/approvals/basic-approval/process_model.json @@ -0,0 +1,9 @@ +{ + "description": "", + "display_name": "basic-approval", + "exception_notification_addresses": [], + "fault_or_suspend_on_exception": "fault", + "metadata_extraction_paths": null, + "primary_file_name": "basic-approval.bpmn", + "primary_process_id": "Process_basic_approval_yssia7n" +} \ No newline at end of file diff --git a/process_models/approvals/process_group.json b/process_models/approvals/process_group.json new file mode 100644 index 0000000..af431c9 --- /dev/null +++ b/process_models/approvals/process_group.json @@ -0,0 +1,5 @@ +{ + "data_store_specifications": {}, + "description": "Process Group for approval processes", + "display_name": "Approvals" +} \ No newline at end of file