diff --git a/lib/util/Di.js b/lib/util/Di.js index ec70268f..cfc6d3d4 100644 --- a/lib/util/Di.js +++ b/lib/util/Di.js @@ -5,5 +5,12 @@ module.exports.isExpandedPool = function(semantic) { }; module.exports.isExpanded = function(semantic) { - return !semantic.$instanceOf('bpmn:SubProcess') || semantic.di.isExpanded; -}; \ No newline at end of file + + // Is type expanded by default? + var isDefaultExpanded = !(semantic.$instanceOf('bpmn:SubProcess') || semantic.$instanceOf('bpmn:CallActivity')); + + // For non default expanded types -> evaluate the expanded flag + var isExpanded = isDefaultExpanded || semantic.di.isExpanded; + + return isExpanded; +};