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