test(util/model): able to clone 'inputOutput' property belonging to a subprocess

Closes camunda/camunda-modeler#513
This commit is contained in:
Ricardo Matias 2017-02-01 15:52:24 +01:00 committed by Philipp Fromme
parent 86c0a0aa75
commit fdc756b442
2 changed files with 8 additions and 0 deletions

View File

@ -537,6 +537,8 @@
"bpmn:GlobalBusinessRuleTask",
"bpmn:GlobalTask",
"bpmn:GlobalManualTask",
"bpmn:SubProcess",
"bpmn:Transaction",
"bpmn:IntermediateCatchEvent",
"bpmn:IntermediateThrowEvent",
"bpmn:EndEvent",

View File

@ -159,6 +159,12 @@ describe('util/ModelCloneHelper', function() {
extensionElements: extensionElements
});
var subProcess = helper.clone(userTask, moddle.create('bpmn:SubProcess'), [
'bpmn:extensionElements'
]);
expect(subProcess.extensionElements.values[0].$type).to.equal('camunda:InputOutput');
var serviceTask = helper.clone(userTask, moddle.create('bpmn:ServiceTask'), [
'bpmn:extensionElements',
'camunda:inputOutput'