test(util/model): able to clone 'inputOutput' property belonging to a subprocess
Closes camunda/camunda-modeler#513
This commit is contained in:
parent
86c0a0aa75
commit
fdc756b442
|
@ -537,6 +537,8 @@
|
||||||
"bpmn:GlobalBusinessRuleTask",
|
"bpmn:GlobalBusinessRuleTask",
|
||||||
"bpmn:GlobalTask",
|
"bpmn:GlobalTask",
|
||||||
"bpmn:GlobalManualTask",
|
"bpmn:GlobalManualTask",
|
||||||
|
"bpmn:SubProcess",
|
||||||
|
"bpmn:Transaction",
|
||||||
"bpmn:IntermediateCatchEvent",
|
"bpmn:IntermediateCatchEvent",
|
||||||
"bpmn:IntermediateThrowEvent",
|
"bpmn:IntermediateThrowEvent",
|
||||||
"bpmn:EndEvent",
|
"bpmn:EndEvent",
|
||||||
|
|
|
@ -159,6 +159,12 @@ describe('util/ModelCloneHelper', function() {
|
||||||
extensionElements: extensionElements
|
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'), [
|
var serviceTask = helper.clone(userTask, moddle.create('bpmn:ServiceTask'), [
|
||||||
'bpmn:extensionElements',
|
'bpmn:extensionElements',
|
||||||
'camunda:inputOutput'
|
'camunda:inputOutput'
|
||||||
|
|
Loading…
Reference in New Issue