arun13 / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

Too manny calls of canConnect() #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.add a canConnect-Method to the stencil set description of BPMN
 e.g.
   canConnect: function(args) { 
      if((args.sourceStencil.id() === args.sourceStencil.namespace()+"Task") ){
    console.log("ConnectionTest for Task activity\n");
        console.log("TargetStencils: %s\n",args.targetStencil.toString());
      }
    return true; 
   }
2. start the oryx-editor 
3. drug&drop a new Task-activity to the canvas
4. observe the console log of FireBug

What is the expected output?

  - nothing form canConnect()

What do you see instead?

 - canConnect(args) is called for each object in shape repository

 - this causes very bad performance when using canConnect()

Original issue reported on code.google.com by sven.wag...@gmail.com on 16 May 2008 at 10:41

GoogleCodeExporter commented 9 years ago
the huge number of checks for connection rules comes from the shape menu. It 
checks
all possible connections every time you click on a shape. This maybe has major 
impact
on performance.

Original comment by NicoPete...@gmail.com on 20 May 2008 at 9:18

GoogleCodeExporter commented 9 years ago
fixed in #474

Original comment by NicoPete...@gmail.com on 9 Jun 2008 at 10:36