diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/src/OrchestratorPlugin.ts b/workspaces/orchestrator/plugins/orchestrator-backend/src/OrchestratorPlugin.ts deleted file mode 100644 index 1f2e15402..000000000 --- a/workspaces/orchestrator/plugins/orchestrator-backend/src/OrchestratorPlugin.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2024 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { - coreServices, - createBackendPlugin, -} from '@backstage/backend-plugin-api'; -import { catalogServiceRef } from '@backstage/plugin-catalog-node/alpha'; - -import { createRouter } from './routerWrapper'; - -export const orchestratorPlugin = createBackendPlugin({ - pluginId: 'orchestrator', - register(env) { - env.registerInit({ - deps: { - logger: coreServices.logger, - config: coreServices.rootConfig, - discovery: coreServices.discovery, - httpRouter: coreServices.httpRouter, - urlReader: coreServices.urlReader, - scheduler: coreServices.scheduler, - permissions: coreServices.permissions, - httpAuth: coreServices.httpAuth, - auth: coreServices.auth, - catalogApi: catalogServiceRef, - }, - async init({ - logger, - config, - discovery, - httpRouter, - catalogApi, - urlReader, - scheduler, - permissions, - httpAuth, - auth, - }) { - const router = await createRouter({ - config: config, - logger, - discovery: discovery, - catalogApi: catalogApi, - urlReader: urlReader, - scheduler: scheduler, - permissions: permissions, - httpAuth: httpAuth, - auth: auth, - }); - httpRouter.use(router); - httpRouter.addAuthPolicy({ - path: '/static/generated/envelope', - allow: 'unauthenticated', - }); - httpRouter.addAuthPolicy({ - path: '/health', - allow: 'unauthenticated', - }); - }, - }); - }, -}); diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts index 0b7e5fc0c..e97fb96da 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts +++ b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts @@ -209,22 +209,6 @@ export class SonataFlowService { return response.ok; } - public async updateInstanceInputData(args: { - definitionId: string; - serviceUrl: string; - instanceId: string; - inputData: ProcessInstanceVariables; - }): Promise { - const { definitionId, serviceUrl, instanceId, inputData } = args; - const urlToFetch = `${serviceUrl}/${definitionId}/${instanceId}`; - const response = await fetch(urlToFetch, { - method: 'PATCH', - body: JSON.stringify(inputData), - headers: { 'content-type': 'application/json' }, - }); - return response.ok; - } - public async createPrefixFetchErrorMessage( urlToFetch: string, response: Response,