123456789101112131415161718192021222324252627282930313233343536 |
- import {
- forEach
- } from 'min-dash';
- /**
- * These are the properties that should be ignored when cloning elements.
- *
- * @type {Array}
- */
- export var IGNORED_PROPERTIES = [
- 'lanes',
- 'incoming',
- 'outgoing',
- 'artifacts',
- 'default',
- 'flowElements',
- 'dataInputAssociations',
- 'dataOutputAssociations'
- ];
- export function getProperties(descriptor, keepDefault) {
- var properties = [];
- forEach(descriptor.properties, function(property) {
- if (keepDefault && property.default) {
- return;
- }
- properties.push(property.ns.name);
- });
- return properties;
- }
|