From f963e20c62002a000d1dd72799070f398f5f49fe Mon Sep 17 00:00:00 2001 From: Jarek Danielak Date: Fri, 24 Jan 2025 12:42:28 +0100 Subject: [PATCH] feat: add ad-hoc subprocess to create options Related to https://github.com/camunda/camunda-modeler/issues/4739 --- lib/util/CreateOptionsUtil.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/util/CreateOptionsUtil.js b/lib/util/CreateOptionsUtil.js index 1ae1877..f4263c1 100644 --- a/lib/util/CreateOptionsUtil.js +++ b/lib/util/CreateOptionsUtil.js @@ -488,6 +488,26 @@ export const SUBPROCESS = [ type: 'bpmn:SubProcess', isExpanded: true } + }, + { + label: 'Ad-hoc sub-process (collapsed)', + search: 'adhoc subprocess', + actionName: 'collapsed-ad-hoc-subprocess', + className: 'bpmn-icon-subprocess-collapsed', + target: { + type: 'bpmn:AdHocSubProcess', + isExpanded: false + } + }, + { + label: 'Ad-hoc sub-process (expanded)', + search: 'adhoc subprocess', + actionName: 'expanded-ad-hoc-subprocess', + className: 'bpmn-icon-subprocess-expanded', + target: { + type: 'bpmn:AdHocSubProcess', + isExpanded: true + } } ].map(option => ({ ...option, group: SUBPROCESS_GROUP }));