Community
Participate
Working Groups
Build Identifier: Hi Colleagues, In Graphiti the following scenario fails: 1) Create three pictogram elements (pe1, pe2, pe3) 2) Create connection between pe1 and pe2 The correct connection feature methods are called - canCreate, create... 3) Drag one of the endpoints and drop it onto the pe3 pictogram The connection transfer does not execute the canCreate, create methods and thus - allows free tranfer (even if the new target does not allow connections) I'm attaching an archive with some screenshots. We have a custom layout feature for connections and it is working fine on pictogram element move. Regards, Stanislav Reproducible: Always
Created attachment 190547 [details] archive with screenshots
Hi Stanislav, this is done by intention, CreateConnectionFeatures only control the creation of new connections. Drag&drop of an endpoint is controlled by a so-called ReconnectionFeature (subclass of DefaultReconnectionFeature). The corresponding methods there will be called. Plese reopen if this does not solve the issue. Michael
Hi Michael, This solves the issue, yes :) I must have missed the ReconnectionFeature while reading the Graphiti help context. Regards, Stanislav