Ldc
2024-04-07 0652600959e5e3b5796fb6e8da129704ca95347a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
draw2d.MyInputPort=function(_5920){
draw2d.InputPort.call(this,_5920);
};
draw2d.MyInputPort.prototype=new draw2d.InputPort();
draw2d.MyInputPort.prototype.type="MyInputPort";
draw2d.MyInputPort.prototype.setWorkflow=function(){
    draw2d.InputPort.prototype.setWorkflow.call(this,workflow);
};
draw2d.MyInputPort.prototype.onDrop=function(port){
    if(port.getMaxFanOut&&port.getMaxFanOut()<=port.getFanOut()){
        return;
    }
    if(this.parentNode.id==port.parentNode.id){
    }else{
        var _5922=new draw2d.CommandConnect(this.parentNode.workflow,port,this);
        var connection = new draw2d.DecoratedConnection();
        var id = "flow"+Sequence.create();
        connection.id=id;
        connection.lineId=id;
        connection.lineName=id;
        //connection.setLabel(id);
        //connection.setId(id);
        _5922.setConnection(connection);
        this.parentNode.workflow.getCommandStack().execute(_5922);
    }
};