From 2447bdeb48cdb5d3f69381b129640150c785136a Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 7 Oct 2022 17:25:10 -0400 Subject: [PATCH] add dynamic enum select fields model --- .../color_question.json | 22 +++++++ .../dynamic_enums_ask_for_color.bpmn | 57 +++++++++++++++++++ .../dynamic-enum-select-fields/workflow.json | 17 ++++++ 3 files changed, 96 insertions(+) create mode 100644 category_number_one/dynamic-enum-select-fields/color_question.json create mode 100644 category_number_one/dynamic-enum-select-fields/dynamic_enums_ask_for_color.bpmn create mode 100644 category_number_one/dynamic-enum-select-fields/workflow.json diff --git a/category_number_one/dynamic-enum-select-fields/color_question.json b/category_number_one/dynamic-enum-select-fields/color_question.json new file mode 100644 index 00000000..dfcd4cd9 --- /dev/null +++ b/category_number_one/dynamic-enum-select-fields/color_question.json @@ -0,0 +1,22 @@ +{ + "definitions": { + "Color": { + "title": "Color", + "type": "string", + "anyOf": [ + "options_from_task_data_var:awesome_color_options" + ] + } + }, + "title": "Select Color", + "type": "object", + "required": [ + "selectedColor" + ], + "properties": { + "selectedColor": { + "$ref": "#/definitions/Color", + "title": "Select color" + } + } +} diff --git a/category_number_one/dynamic-enum-select-fields/dynamic_enums_ask_for_color.bpmn b/category_number_one/dynamic-enum-select-fields/dynamic_enums_ask_for_color.bpmn new file mode 100644 index 00000000..7d21851b --- /dev/null +++ b/category_number_one/dynamic-enum-select-fields/dynamic_enums_ask_for_color.bpmn @@ -0,0 +1,57 @@ + + + + + Flow_1my9ag5 + + + + + Flow_13mlau2 + + + + Flow_1my9ag5 + Flow_0b04rbg + awesome_color_options = [{"value": "blue", "label": "Blue"}, {"value": "green", "label": "Green"}] + + + + + + + + Flow_0b04rbg + Flow_13mlau2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/category_number_one/dynamic-enum-select-fields/workflow.json b/category_number_one/dynamic-enum-select-fields/workflow.json new file mode 100644 index 00000000..12e0e291 --- /dev/null +++ b/category_number_one/dynamic-enum-select-fields/workflow.json @@ -0,0 +1,17 @@ +{ + "description": "Dynamic Enum Select Fields", + "display_name": "Dynamic Enum Select Fields", + "display_order": 10, + "exception_notification_addresses": [], + "fault_or_suspend_on_exception": "fault", + "files": [], + "id": "dynamic-enum-select-fields", + "is_master_spec": false, + "is_review": false, + "libraries": [], + "library": false, + "primary_file_name": "dynamic_enums_ask_for_color.bpmn", + "primary_process_id": "Proccess_0e253c6", + "process_group_id": "category_number_one", + "standalone": false +} \ No newline at end of file