Skip to content

GLSPCommandStack: Failed to execute command: TypeError: Cannot read property 'some' of undefined #541

Answered by rsoika
rsoika asked this question in Q&A
Discussion options

You must be logged in to vote

Finally I found the issue. It looks that it was the missing method createDefaultEdgeTypeHint in my BaseDiagramConfiguration

After I added the method like this:

   @Override
   public EdgeTypeHint createDefaultEdgeTypeHint(final String elementId) {
      EdgeTypeHint hint = super.createDefaultEdgeTypeHint(elementId);
      hint.setSourceElementTypeIds(
         Arrays.asList(ModelTypes.MANUAL_TASK));
      hint.setTargetElementTypeIds(
         Arrays.asList(ModelTypes.MANUAL_TASK));
      return hint;
   }

the error is gone and every thing works as expected.

By the way, this is one of two methods in the DiagramConfiguration Interface which are not documented in the source code. So I still…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tortmayr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant