feat(bpmnrenderer): render group frame

This commit is contained in:
jdotzki 2014-04-29 15:39:26 +02:00
parent c17204356c
commit 1369fb5ad6
2 changed files with 21 additions and 1 deletions

View File

@ -866,8 +866,15 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) {
'bpmn:BoundaryEvent': function(p, data) {
return renderer('bpmn:IntermediateInterruptedEvent')(p, data);
},
'label': function(p, data) {
'bpmn:Group': function(p, data) {
var group = drawRect(p, data.width, data.height, TASK_BORDER_RADIUS);
group.attr({
'stroke-width': 1,
'stroke-dasharray': '8,3,1,3',
'fill': 'None'
});
return group;
}
};

13
test/fixtures/bpmn/render/groups.bpmn vendored Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<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" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_s7w2sLjYEeO7GYB44nIlfA" targetNamespace="http://activiti.org/bpmn">
<bpmn2:process id="Process_1" isExecutable="false">
<bpmn2:group id="Group_1"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="_BPMNShape_Group_2" bpmnElement="Group_1">
<dc:Bounds height="156.0" width="400.0" x="123.0" y="61.0"/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>