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