enabled 3 output port for exclusive gateway

This commit is contained in:
girish
2011-02-22 07:32:15 +00:00
parent 9d1997b4c0
commit 2d82fc1bcc
2 changed files with 8 additions and 5 deletions

View File

@@ -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'];

View File

@@ -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/)) {