test(rules): verify groups and text annotations can be connected
Related to #1327
This commit is contained in:
parent
b7ad57e348
commit
c7dcd6c77b
|
@ -23,8 +23,12 @@
|
||||||
<bpmn2:dataStoreReference id="DataStoreReference" name="" dataStoreRef="DataStore_1"/>
|
<bpmn2:dataStoreReference id="DataStoreReference" name="" dataStoreRef="DataStore_1"/>
|
||||||
<bpmn2:subProcess id="CollapsedSubProcess"/>
|
<bpmn2:subProcess id="CollapsedSubProcess"/>
|
||||||
<bpmn2:textAnnotation id="TextAnnotation"/>
|
<bpmn2:textAnnotation id="TextAnnotation"/>
|
||||||
|
<bpmn2:group id="Group" categoryValueRef="CategoryValue" />
|
||||||
</bpmn2:process>
|
</bpmn2:process>
|
||||||
<bpmn2:dataStore id="DataStore_1" name="Data Store 1"/>
|
<bpmn2:dataStore id="DataStore_1" name="Data Store 1"/>
|
||||||
|
<bpmn2:category id="Category">
|
||||||
|
<bpmn2:categoryValue id="CategoryValue" />
|
||||||
|
</bpmn2:category>
|
||||||
<bpmndi:BPMNDiagram id="_BPMNDiagram_2">
|
<bpmndi:BPMNDiagram id="_BPMNDiagram_2">
|
||||||
<bpmndi:BPMNPlane id="_BPMNPlane_2" bpmnElement="Process">
|
<bpmndi:BPMNPlane id="_BPMNPlane_2" bpmnElement="Process">
|
||||||
<bpmndi:BPMNShape id="_BPMNShape_Task_8" bpmnElement="Task">
|
<bpmndi:BPMNShape id="_BPMNShape_Task_8" bpmnElement="Task">
|
||||||
|
@ -87,6 +91,9 @@
|
||||||
<bpmndi:BPMNShape id="CollapsedSubProcess_di" bpmnElement="CollapsedSubProcess">
|
<bpmndi:BPMNShape id="CollapsedSubProcess_di" bpmnElement="CollapsedSubProcess">
|
||||||
<dc:Bounds x="756" y="358" width="100" height="80"/>
|
<dc:Bounds x="756" y="358" width="100" height="80"/>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
|
<bpmndi:BPMNShape id="Group_di" bpmnElement="Group">
|
||||||
|
<dc:Bounds x="770" y="90" width="210" height="120" />
|
||||||
|
</bpmndi:BPMNShape>
|
||||||
</bpmndi:BPMNPlane>
|
</bpmndi:BPMNPlane>
|
||||||
</bpmndi:BPMNDiagram>
|
</bpmndi:BPMNDiagram>
|
||||||
</bpmn2:definitions>
|
</bpmn2:definitions>
|
|
@ -423,6 +423,28 @@ describe('features/modeling/rules - BpmnRules', function() {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
it('connect Group -> TextAnnotation', inject(function() {
|
||||||
|
|
||||||
|
expectCanConnect('Group', 'TextAnnotation', {
|
||||||
|
sequenceFlow: false,
|
||||||
|
messageFlow: false,
|
||||||
|
association: true,
|
||||||
|
dataAssociation: false
|
||||||
|
});
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
it('connect TextAnnotation -> Group', inject(function() {
|
||||||
|
|
||||||
|
expectCanConnect('TextAnnotation', 'Group', {
|
||||||
|
sequenceFlow: false,
|
||||||
|
messageFlow: false,
|
||||||
|
association: true,
|
||||||
|
dataAssociation: false
|
||||||
|
});
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
it('connect StartEvent_None -> DataStoreReference', inject(function() {
|
it('connect StartEvent_None -> DataStoreReference', inject(function() {
|
||||||
|
|
||||||
expectCanConnect('StartEvent_None', 'DataStoreReference', {
|
expectCanConnect('StartEvent_None', 'DataStoreReference', {
|
||||||
|
|
Loading…
Reference in New Issue