bpmn-js/lib/util/Di.js

17 lines
459 B
JavaScript
Raw Normal View History

2014-06-17 09:48:23 +00:00
'use strict';
module.exports.isExpandedPool = function(semantic) {
2014-06-17 09:48:23 +00:00
return !!semantic.processRef;
};
2014-06-17 09:48:23 +00:00
module.exports.isExpanded = function(semantic) {
// 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;
};