impr(bpmnrenderer): set correct outline for event sub-processes

This commit is contained in:
jdotzki 2014-05-15 08:37:45 +02:00
parent 10c1dbcf95
commit eea1264518
1 changed files with 7 additions and 0 deletions

View File

@ -819,6 +819,13 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) {
'bpmn:SubProcess': function(p, data) { 'bpmn:SubProcess': function(p, data) {
var rect = renderer('bpmn:Activity')(p, data); var rect = renderer('bpmn:Activity')(p, data);
var isEventSubProcess = !!(bpmnRegistry.getSemantic(data.id).triggeredByEvent);
if(isEventSubProcess) {
rect.attr({
'stroke-dasharray': '1,2',
'stroke-width': 1
});
}
var di = bpmnRegistry.getDi(data); var di = bpmnRegistry.getDi(data);