-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82d049f
commit 18e0f5c
Showing
51 changed files
with
1,375 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
examples/workflow-test/src/graph/elements/activity-node-decision.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
import { NodeMetadata, PNode } from '@eclipse-glsp/glsp-playwright'; | ||
import { Mix, useClickableFlow } from '@eclipse-glsp/glsp-playwright/src/extension'; | ||
|
||
export const ActivityNodeDecisionMixin = Mix(PNode).flow(useClickableFlow).build(); | ||
|
||
@NodeMetadata({ | ||
type: 'activityNode:decision' | ||
}) | ||
export class ActivityNodeDecision extends ActivityNodeDecisionMixin {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
import { | ||
ChildrenAccessor, | ||
Mix, | ||
NodeMetadata, | ||
PLabelledElement, | ||
PNode, | ||
SVGMetadataUtils, | ||
useClickableFlow, | ||
useCommandPaletteCapability, | ||
useDeletableFlow, | ||
useDraggableFlow, | ||
useRenameableFlow, | ||
useResizeHandleCapability, | ||
useSelectableFlow | ||
} from '@eclipse-glsp/glsp-playwright/'; | ||
import { LabelHeading } from './label-heading.po'; | ||
|
||
export const CategoryMixin = Mix(PNode) | ||
.flow(useClickableFlow) | ||
.flow(useDeletableFlow) | ||
.flow(useDraggableFlow) | ||
.flow(useRenameableFlow) | ||
.flow(useSelectableFlow) | ||
.capability(useResizeHandleCapability) | ||
.capability(useCommandPaletteCapability) | ||
.build(); | ||
|
||
@NodeMetadata({ | ||
type: 'category' | ||
}) | ||
export class Category extends CategoryMixin implements PLabelledElement { | ||
override readonly children = new CategoryChildren(this); | ||
|
||
get label(): Promise<string> { | ||
return this.children.label().then(label => label.textContent()); | ||
} | ||
} | ||
|
||
export class CategoryChildren extends ChildrenAccessor { | ||
async label(): Promise<LabelHeading> { | ||
return this.ofType(LabelHeading, { selector: SVGMetadataUtils.typeAttrOf(LabelHeading) }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
examples/workflow-test/src/graph/elements/weighted-edge.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
import { EdgeMetadata, Mix, PEdge, useClickableFlow, useRoutingPointCapability } from '@eclipse-glsp/glsp-playwright/'; | ||
|
||
const EdgeMixin = Mix(PEdge).flow(useClickableFlow).capability(useRoutingPointCapability).build(); | ||
|
||
@EdgeMetadata({ | ||
type: 'edge:weighted' | ||
}) | ||
export class WeightedEdge extends EdgeMixin {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.