started work on saving gateway position when dragged
This commit is contained in:
@@ -1879,21 +1879,6 @@ MyWorkflow.prototype.saveEvents = function(oEvent,sTaskUID)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
MyWorkflow.prototype.saveRouteTest = function(dragObj,dropObj){
|
|
||||||
var pro_uid = this.getUrlVars();
|
|
||||||
var task_uid = new Array();
|
|
||||||
var next_task_uid = new Array();
|
|
||||||
var rou_type ='';
|
|
||||||
|
|
||||||
if(dragObj.type.match(/Task/) && dropObj.type.match(/End/) && dropObj.type.match(/Event/))
|
|
||||||
{
|
|
||||||
this.deleteRoute(dropObj.conn,1);
|
|
||||||
task_uid[0] = dragObj.id;
|
|
||||||
next_task_uid[0] = '-1';
|
|
||||||
rou_type = 'SEQUENTIAL';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* save Route on Changing of route Ports depending on the Shape Type
|
* save Route on Changing of route Ports depending on the Shape Type
|
||||||
@@ -2290,5 +2275,4 @@ MyWorkflow.prototype.zoom = function(sType)
|
|||||||
fig.bpmnText.paint();
|
fig.bpmnText.paint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -273,20 +273,6 @@ InputPort.prototype.onDrop = function (port) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.parentNode.id == port.parentNode.id) {} else {
|
if (this.parentNode.id == port.parentNode.id) {} else {
|
||||||
/* var newObj = new Array();
|
|
||||||
newObj = this.workflow.currentSelection;
|
|
||||||
var preObj = port.parentNode;
|
|
||||||
newObj.sPortType =port.properties.name;
|
|
||||||
preObj.sPortType =this.properties.name;
|
|
||||||
this.workflow.saveRoute(preObj,newObj);
|
|
||||||
|
|
||||||
var _3f02 = new CommandConnect(this.parentNode.workflow, port, this);
|
|
||||||
if (_3f02.source.type == _3f02.target.type) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_3f02.setConnection(new DecoratedConnection());
|
|
||||||
this.parentNode.workflow.getCommandStack().execute(_3f02);
|
|
||||||
*/
|
|
||||||
var _4070 = new CommandConnect(this.parentNode.workflow, port, this);
|
var _4070 = new CommandConnect(this.parentNode.workflow, port, this);
|
||||||
if (_4070.source.type == _4070.target.type) {
|
if (_4070.source.type == _4070.target.type) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user