Skip to content

Commit

Permalink
GLSP-1401: Fix weighted edge creation (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
tortmayr authored Sep 5, 2024
1 parent 757447b commit a9ed9ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ModelTypes } from './util/model-types';
@injectable()
export class WorkflowEdgeCreationChecker implements EdgeCreationChecker {
isValidSource(edgeType: string, sourceElement: GModelElement): boolean {
return edgeType !== ModelTypes.WEIGHTED_EDGE && sourceElement.type === ModelTypes.DECISION_NODE;
return edgeType === ModelTypes.WEIGHTED_EDGE && sourceElement.type === ModelTypes.DECISION_NODE;
}
isValidTarget(edgeType: string, sourceElement: GModelElement, targetElement: GModelElement): boolean {
return (
Expand Down

0 comments on commit a9ed9ad

Please sign in to comment.