diff --git a/tests/data/dynamic_enum_select_fields/color_question.json b/tests/data/dynamic_enum_select_fields/color_question.json new file mode 100644 index 00000000..9399e4e1 --- /dev/null +++ b/tests/data/dynamic_enum_select_fields/color_question.json @@ -0,0 +1,28 @@ +{ + "definitions": { + "Color": { + "title": "Color", + "type": "string", + "anyOf": [ + { + "type": "string", + "enum": [ + "#0000ff" + ], + "title": "Blue" + } + ] + } + }, + "title": "Select Color", + "type": "object", + "required": [ + "selectedColor" + ], + "properties": { + "selectedColor": { + "$ref": "#/definitions/Color", + "title": "Select color" + } + } +} diff --git a/tests/data/dynamic_enum_select_fields/diagram.bpmn b/tests/data/dynamic_enum_select_fields/diagram.bpmn deleted file mode 100644 index cb623748..00000000 --- a/tests/data/dynamic_enum_select_fields/diagram.bpmn +++ /dev/null @@ -1,74 +0,0 @@ - - - - - to - - - from.name - - - - - {"to": "the_recipient1" } - - - - - {"from": {"name": "the_sender"}} - - - - - new - - - - - Flow_0dbnzbi - - - - Flow_0nt355i - - - - - - - - - - Flow_0dbnzbi - Flow_0nt355i - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/data/dynamic_enum_select_fields/dynamic_enums_ask_for_color.bpmn b/tests/data/dynamic_enum_select_fields/dynamic_enums_ask_for_color.bpmn new file mode 100644 index 00000000..7d21851b --- /dev/null +++ b/tests/data/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/tests/data/dynamic_enum_select_fields/ui_schema.json b/tests/data/dynamic_enum_select_fields/ui_schema.json deleted file mode 100644 index 2c63c085..00000000 --- a/tests/data/dynamic_enum_select_fields/ui_schema.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} diff --git a/tests/data/dynamic_enum_select_fields/workflow.json b/tests/data/dynamic_enum_select_fields/workflow.json new file mode 100644 index 00000000..12e0e291 --- /dev/null +++ b/tests/data/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