@villedemontreal/workit
Version:
Worker for Node.js system with pluggable clients that works with both AWS Step function and Camunda platform powered by TypeScript
30 lines • 2.9 kB
JavaScript
;
/*
* Copyright (c) 2025 Ville de Montreal. All rights reserved.
* Licensed under the MIT license.
* See LICENSE file in the project root for full license information.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.dirname = void 0;
const workit_bpm_client_1 = require("@villedemontreal/workit-bpm-client");
const workit_core_1 = require("@villedemontreal/workit-core");
const client_1 = require("../camunda-n-mq/client");
const workit_stepfunction_client_1 = require("@villedemontreal/workit-stepfunction-client");
const stepFunctionManager_1 = require("../stepFunction/stepFunctionManager");
const stepFunctionWorker_1 = require("../stepFunction/stepFunctionWorker");
const camundaBpmWorker_1 = require("../camundaBpm/camundaBpmWorker");
const camundaManager_1 = require("../camundaBpm/camundaManager");
const identifiers_1 = require("./constants/identifiers");
const tag_1 = require("./constants/tag");
require("./container");
workit_core_1.IoC.bindTo(workit_bpm_client_1.CamundaExternalClient, identifiers_1.SERVICE_IDENTIFIER.camunda_external_client, [identifiers_1.SERVICE_IDENTIFIER.camunda_external_config], null, false);
workit_core_1.IoC.bindTo(workit_bpm_client_1.CamundaBpmClient, identifiers_1.SERVICE_IDENTIFIER.camunda_client, [identifiers_1.SERVICE_IDENTIFIER.camunda_external_config, identifiers_1.SERVICE_IDENTIFIER.camunda_external_client], tag_1.TAG.camundaBpm, false);
workit_core_1.IoC.bindTo(workit_stepfunction_client_1.SFnSQSClient, identifiers_1.SERVICE_IDENTIFIER.camunda_client, [identifiers_1.SERVICE_IDENTIFIER.stepfunction_config], tag_1.TAG.stepFunction, false);
workit_core_1.IoC.bindTo(client_1.Client, identifiers_1.SERVICE_IDENTIFIER.client, [identifiers_1.SERVICE_IDENTIFIER.camunda_client], null, false);
workit_core_1.IoC.bindTo(workit_core_1.Worker, identifiers_1.SERVICE_IDENTIFIER.worker, [identifiers_1.SERVICE_IDENTIFIER.client, identifiers_1.SERVICE_IDENTIFIER.process_handler], null, false);
workit_core_1.IoC.bindTo(camundaManager_1.CamundaManager, identifiers_1.SERVICE_IDENTIFIER.client_manager, [identifiers_1.SERVICE_IDENTIFIER.camunda_client], tag_1.TAG.camundaBpm, false);
workit_core_1.IoC.bindTo(stepFunctionManager_1.StepFunctionManager, identifiers_1.SERVICE_IDENTIFIER.client_manager, [identifiers_1.SERVICE_IDENTIFIER.camunda_client], tag_1.TAG.stepFunction, false);
workit_core_1.IoC.bindTo(camundaBpmWorker_1.CamundaBpmWorker, identifiers_1.SERVICE_IDENTIFIER.worker, [identifiers_1.SERVICE_IDENTIFIER.camunda_client, identifiers_1.SERVICE_IDENTIFIER.process_handler], tag_1.TAG.camundaBpm, false);
workit_core_1.IoC.bindTo(stepFunctionWorker_1.StepFunctionWorker, identifiers_1.SERVICE_IDENTIFIER.worker, [identifiers_1.SERVICE_IDENTIFIER.camunda_client, identifiers_1.SERVICE_IDENTIFIER.process_handler], tag_1.TAG.stepFunction, false);
exports.dirname = __dirname;
//# sourceMappingURL=ioc.js.map