enabled 3 output port for exclusive gateway
This commit is contained in:
@@ -767,11 +767,11 @@ MyWorkflow.prototype.disablePorts=function(oShape)
|
||||
{
|
||||
if(oShape.type != ''){
|
||||
var ports ='';
|
||||
if(oShape.type.match(/Task/) || oShape.type.match(/Gateway/) || oShape.type.match(/Inter/) || oShape.type.match(/SubProcess/)) {
|
||||
ports = ['output1','input1','output2','input2' ];
|
||||
if(oShape.type.match(/bpmnGatewayExclusiveData/)) {
|
||||
ports = ['output1','input1','output2','input2', 'output3' ];
|
||||
}
|
||||
else if(oShape.type.match(/bpmnGatewayExclusiveData/)) {
|
||||
ports = ['output1','input1','output2','input2', 'input3' ];
|
||||
else if(oShape.type.match(/Task/) || oShape.type.match(/Gateway/) || oShape.type.match(/Inter/) || oShape.type.match(/SubProcess/)) {
|
||||
ports = ['output1','input1','output2','input2' ];
|
||||
}
|
||||
else if(oShape.type.match(/End/)) {
|
||||
ports = ['input1','input2'];
|
||||
|
||||
@@ -716,7 +716,10 @@ FlowMenu.prototype.onOtherFigureMoved = function (_39fd) {
|
||||
this.actionGateway.setPosition(20, 0);
|
||||
this.addChild(this.actionEndEvent);
|
||||
this.actionEndEvent.setPosition(20, 40);
|
||||
ports = ['output1', 'input1', 'output2', 'input2'];
|
||||
if(bpmnShape.match(/bpmnGatewayExclusiveData/))
|
||||
ports = ['output1', 'input1', 'output2', 'input2','output3'];
|
||||
else
|
||||
ports = ['output1', 'input1', 'output2', 'input2'];
|
||||
_39fd.workflow.enablePorts(_39fd, ports);
|
||||
}
|
||||
else if (bpmnShape.match(/Annotation/) || bpmnShape.match(/Dataobject/)) {
|
||||
|
||||
Reference in New Issue
Block a user