-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move deployment models to separate group to enable combining them wit…
…h connectors (#103) * Move deployment models to separate group to enable combining them with connectors * Move Yaml Upload Button to Connector menu * Move OpenAPI endpoint selection to implementation group * Move YAMl upload button into if * Invert null check
- Loading branch information
Showing
11 changed files
with
207 additions
and
169 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
11 changes: 11 additions & 0 deletions
11
components/bpmn-q/modeler-component/extensions/opentosca/modeling/OpenTOSCARenderer.js
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
11 changes: 11 additions & 0 deletions
11
...n-q/modeler-component/extensions/opentosca/modeling/properties-provider/ArtifactUpload.js
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
55 changes: 55 additions & 0 deletions
55
...deler-component/extensions/opentosca/modeling/properties-provider/DeploymentModelProps.js
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,55 @@ | ||
/** | ||
* Copyright (c) 2023 Institute of Architecture of Application Systems - | ||
* University of Stuttgart | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms the Apache Software License 2.0 | ||
* which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { getServiceTaskLikeBusinessObject } from "../../../../editor/util/camunda-utils/ImplementationTypeUtils"; | ||
import { ArtifactUpload } from "./ArtifactUpload"; | ||
import { isTextFieldEntryEdited } from "@bpmn-io/properties-panel"; | ||
import { Deployment } from "./Deployment"; | ||
|
||
/** | ||
* Properties group for service tasks. Extends the original implementation by adding a new selection option to the | ||
* implementation entry: deployment. | ||
* | ||
* @param props | ||
* @return {{component: function(*): preact.VNode<any>, isEdited: function(*): *, id: string}[]|*[]} | ||
* @constructor | ||
*/ | ||
export function DeploymentModelProps(props) { | ||
const { element, wineryEndpoint, translate } = props; | ||
|
||
// deployment models can only be defined for ServiceTasks | ||
if (!getServiceTaskLikeBusinessObject(element)) { | ||
return []; | ||
} | ||
|
||
// list of configuration options | ||
const entries = []; | ||
|
||
// field to define deployment models | ||
entries.push({ | ||
id: "deployment", | ||
element, | ||
translate, | ||
wineryEndpoint, | ||
component: Deployment, | ||
isEdited: isTextFieldEntryEdited, | ||
}); | ||
|
||
entries.push({ | ||
id: "artifactUpload", | ||
element, | ||
translate, | ||
component: ArtifactUpload, | ||
isEdited: isTextFieldEntryEdited, | ||
}); | ||
|
||
return entries; | ||
} |
11 changes: 11 additions & 0 deletions
11
...ler-component/extensions/opentosca/modeling/properties-provider/DmnImplementationProps.js
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.