You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by th...@apache.org on 2026/05/07 18:35:22 UTC
(incubator-kie-tools) branch main updated: kie-issues#2291: BPMN Editor: Unable to create completion conditions on Milestones - Part 2 (#3566)
This is an automated email from the ASF dual-hosted git repository.
thiagoelg pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 593527e0eb0 kie-issues#2291: BPMN Editor: Unable to create completion conditions on Milestones - Part 2 (#3566)
593527e0eb0 is described below
commit 593527e0eb048be9670169d04d154e39fec51911
Author: Rajalakshmy S <83...@users.noreply.github.com>
AuthorDate: Fri May 8 00:05:18 2026 +0530
kie-issues#2291: BPMN Editor: Unable to create completion conditions on Milestones - Part 2 (#3566)
Co-authored-by: Rajalakshmy S <Ra...@ibm.com>
---
.../src/customTasks/MilestoneTask.tsx | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/packages/bpmn-editor-envelope/src/customTasks/MilestoneTask.tsx b/packages/bpmn-editor-envelope/src/customTasks/MilestoneTask.tsx
index 879a97b2d3d..6c78fbafe38 100644
--- a/packages/bpmn-editor-envelope/src/customTasks/MilestoneTask.tsx
+++ b/packages/bpmn-editor-envelope/src/customTasks/MilestoneTask.tsx
@@ -35,7 +35,10 @@ import { SlaDueDateInput } from "@kie-tools/bpmn-editor/dist/propertiesPanel/sla
import { generateUuid } from "@kie-tools/xyflow-react-kie-diagram/dist/uuid/uuid";
import { BpmnEditorEnvelopeI18n, bpmnEditorEnvelopeI18nDefaults, bpmnEditorEnvelopeI18nDictionaries } from "../i18n";
import { I18n } from "@kie-tools-core/i18n/dist/core";
-import { DEFAULT_DATA_TYPES } from "@kie-tools/bpmn-editor/dist/mutations/addOrGetItemDefinitions";
+import {
+ addOrGetItemDefinitions,
+ DEFAULT_DATA_TYPES,
+} from "@kie-tools/bpmn-editor/dist/mutations/addOrGetItemDefinitions";
import { DataMapping, setInputAndOutputDataMapping } from "@kie-tools/bpmn-editor/dist/mutations/_dataMapping";
export const MILESTONE_TASK_ICON = (
@@ -101,6 +104,16 @@ export function getMilestoneTask(i18n: BpmnEditorEnvelopeI18n): CustomTask {
};
},
onAdded: (state, task) => {
+ // Make sure String and Object data types are available
+ addOrGetItemDefinitions({
+ definitions: state.bpmn.model.definitions,
+ dataType: DEFAULT_DATA_TYPES.STRING,
+ });
+ addOrGetItemDefinitions({
+ definitions: state.bpmn.model.definitions,
+ dataType: DEFAULT_DATA_TYPES.OBJECT,
+ });
+
const inputs: DataMapping[] = [
{
dtype: DEFAULT_DATA_TYPES.STRING,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org