Skip to content

Commit 104a8b9

Browse files
barmacnikku
authored andcommitted
fix: display process name only once for C7
Related to camunda/camunda-modeler#4317
1 parent 8cf48a3 commit 104a8b9

File tree

3 files changed

+370
-40
lines changed

3 files changed

+370
-40
lines changed

src/provider/camunda-platform/properties/ProcessProps.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -33,50 +33,10 @@ export function ProcessProps(props) {
3333
id: 'processId',
3434
component: ProcessId,
3535
isEdited: isTextFieldEntryEdited
36-
},
37-
{
38-
id: 'processName',
39-
component: ProcessName,
40-
isEdited: isTextFieldEntryEdited
4136
}
4237
];
4338
}
4439

45-
function ProcessName(props) {
46-
const { element } = props;
47-
48-
const commandStack = useService('commandStack');
49-
const translate = useService('translate');
50-
const debounce = useService('debounceInput');
51-
const process = element.businessObject.get('processRef');
52-
53-
const getValue = () => {
54-
return process.get('name');
55-
};
56-
57-
const setValue = (value) => {
58-
commandStack.execute(
59-
'element.updateModdleProperties',
60-
{
61-
element,
62-
moddleElement: process,
63-
properties: {
64-
name: value
65-
}
66-
}
67-
);
68-
};
69-
70-
return TextFieldEntry({
71-
element,
72-
id: 'processName',
73-
label: translate('Process name'),
74-
getValue,
75-
setValue,
76-
debounce
77-
});
78-
}
79-
8040
function ProcessId(props) {
8141
const { element } = props;
8242

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_o9zEIBsMEeWBwbKIgYGooQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="camunda modeler" exporterVersion="2.7.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3+
<bpmn2:collaboration id="_Collaboration_2">
4+
<bpmn2:participant id="_Participant_2" name="Pool" processRef="Process_1" />
5+
<bpmn2:participant id="Participant_1" name="Pool" processRef="Process_2" />
6+
<bpmn2:participant id="Participant_Empty" name="Collapsed Pool" />
7+
</bpmn2:collaboration>
8+
<bpmn2:process id="Process_1" name="Process 1" isExecutable="false">
9+
<bpmn2:startEvent id="StartEvent_1">
10+
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
11+
</bpmn2:startEvent>
12+
<bpmn2:endEvent id="EndEvent_1">
13+
<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
14+
</bpmn2:endEvent>
15+
<bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="StartEvent_1" targetRef="EndEvent_1" />
16+
</bpmn2:process>
17+
<bpmn2:process id="Process_2" name="Process 2" isExecutable="false">
18+
<bpmn2:startEvent id="StartEvent_2">
19+
<bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
20+
</bpmn2:startEvent>
21+
<bpmn2:endEvent id="EndEvent_2">
22+
<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
23+
</bpmn2:endEvent>
24+
<bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="StartEvent_2" targetRef="EndEvent_2" />
25+
</bpmn2:process>
26+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
27+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="_Collaboration_2">
28+
<bpmndi:BPMNShape id="_BPMNShape_Participant_2" bpmnElement="_Participant_2" isHorizontal="true">
29+
<dc:Bounds x="84" y="24" width="540" height="215" />
30+
</bpmndi:BPMNShape>
31+
<bpmndi:BPMNShape id="_BPMNShape_Participant_3" bpmnElement="Participant_1" isHorizontal="true">
32+
<dc:Bounds x="84" y="276" width="540" height="181" />
33+
</bpmndi:BPMNShape>
34+
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
35+
<dc:Bounds x="182" y="119" width="36" height="36" />
36+
</bpmndi:BPMNShape>
37+
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_3" bpmnElement="StartEvent_2">
38+
<dc:Bounds x="172" y="355" width="36" height="36" />
39+
</bpmndi:BPMNShape>
40+
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_2" bpmnElement="EndEvent_1">
41+
<dc:Bounds x="268" y="119" width="36" height="36" />
42+
</bpmndi:BPMNShape>
43+
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_StartEvent_2" targetElement="_BPMNShape_EndEvent_2">
44+
<di:waypoint xsi:type="dc:Point" x="218" y="137" />
45+
<di:waypoint xsi:type="dc:Point" x="268" y="137" />
46+
</bpmndi:BPMNEdge>
47+
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_3" bpmnElement="EndEvent_2">
48+
<dc:Bounds x="258" y="355" width="36" height="36" />
49+
</bpmndi:BPMNShape>
50+
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_StartEvent_3" targetElement="_BPMNShape_EndEvent_3">
51+
<di:waypoint xsi:type="dc:Point" x="208" y="373" />
52+
<di:waypoint xsi:type="dc:Point" x="258" y="373" />
53+
</bpmndi:BPMNEdge>
54+
<bpmndi:BPMNShape id="Participant_1k4fdpr_di" bpmnElement="Participant_Empty">
55+
<dc:Bounds x="83.5" y="498" width="541" height="112" />
56+
</bpmndi:BPMNShape>
57+
</bpmndi:BPMNPlane>
58+
</bpmndi:BPMNDiagram>
59+
</bpmn2:definitions>

0 commit comments

Comments
 (0)