diff --git a/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py b/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py index d81988df..31679040 100644 --- a/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py +++ b/ecs/jskult-batch/src/batch/common/jskult_batch_entrypoint_factory.py @@ -5,6 +5,7 @@ from src.batch.trn_result_data_bio_lot import TrnResultDataBioLot from src.batch.update_business_day import UpdateBusinessDay from src.error.exceptions import BatchOperationException from src.logging.get_logger import get_logger +from src.system_var import constants logger = get_logger("後続処理/日付更新処理振り分け") @@ -16,13 +17,13 @@ class JskultBatchEntrypointFactory: def create(self) -> JskultBatchEntrypoint: - if self._entrypoint_module_name == "jskult-batch-trn-result-data-bio-lot": + if self._entrypoint_module_name == constants.PROCESS_NAME_TRN_RESULT_DATA_BIO_LOT: return TrnResultDataBioLot() - if self._entrypoint_module_name == "jskult-batch-mst-inst-all": + if self._entrypoint_module_name == constants.PROCESS_NAME_MST_INST_ALL: return MstInstAll() - if self._entrypoint_module_name == "jskult-batch-dcf-inst-merge-io": + if self._entrypoint_module_name == constants.PROCESS_NAME_DCF_INST_MERGE_IO: return DcfInstMergeIO() - if self._entrypoint_module_name == "jskult-batch-update-business-day": + if self._entrypoint_module_name == constants.PROCESS_NAME_UPDATE_BUSINESS_DAY: return UpdateBusinessDay() logger.error(