Package ca.cdr.api.camel
Interface ICdaCamelProcessorTxLogHelper
- All Superinterfaces:
ICamelProcessorTxLogHelper
Transaction log helper to be used by for CDA Camel procedures
-
Field Summary
Fields inherited from interface ca.cdr.api.camel.ICamelProcessorTxLogHelper
TX_LOG_PARAM_SHOW_BODY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCdaLogStepOrNewLog
(org.apache.camel.Exchange theExchange, CdaToFhirConversionResultJson theConversionResult, TransactionLogEventTypeEnum theLogType, ICdaTxLogStepsProvider theStepsProvider) If transaction logging is active, logs a step if transaction log is present or a new transaction log otherwisegetCdaLogStepsForBundles
(org.apache.camel.Exchange theExchange, CdaToFhirConversionResultJson theConversionResult, String theProcedureName) void
Adds a transaction log step If a transaction log is present or a new transaction log otherwiseMethods inherited from interface ca.cdr.api.camel.ICamelProcessorTxLogHelper
addStepIfTxLogActive, addStepIfTxLogActive, addStepIfTxLogActive, buildTxLogStep, clearTxLog, commitTxLog, getRequestUrl, getSettings, isTxLogShowBody, isTxLogStarted, startTxLog
-
Method Details
-
logRawCcd
Adds a transaction log step If a transaction log is present or a new transaction log otherwise- Parameters:
theProcedureName
- the calling procedure nametheExchange
- the camel exchangetheMessage
- the CDA message
-
addCdaLogStepOrNewLog
void addCdaLogStepOrNewLog(org.apache.camel.Exchange theExchange, CdaToFhirConversionResultJson theConversionResult, TransactionLogEventTypeEnum theLogType, ICdaTxLogStepsProvider theStepsProvider) throws Exception If transaction logging is active, logs a step if transaction log is present or a new transaction log otherwise- Parameters:
theExchange
- the camel exchangetheConversionResult
- the inputCdaToFhirConversionResultJson
theLogType
- theTransactionLogEventTypeEnum
theStepsProvider
- theICdaTxLogStepsProvider
- Throws:
Exception
-
getCdaLogStepsForBundles
List<TransactionLogStepJson> getCdaLogStepsForBundles(org.apache.camel.Exchange theExchange, CdaToFhirConversionResultJson theConversionResult, String theProcedureName) - Parameters:
theExchange
- the camel exchangetheConversionResult
- the inputCdaToFhirConversionResultJson
theProcedureName
- the calling procedure name
-