Skip to content

A19 Query response from database #4529

Answered by Hueli
Pensive-Potato asked this question in Q&A
Discussion options

You must be logged in to vote

You could place your javascript code in the postprocessor section. In this example (for Oracle DB), the query structure is reused for the response. Of course, you could build it from scratch. You could put some extra checks in the source filter section

I'm not a qualified mirth expert, but this works:

// This script executes once after a message has been processed
const DEBUG = false
    
// allowed device prefix CLE_ or RAP_
var rDevName = /^(LUD_CLE)|(LUD_RAP)(?:_.*)$/

// must be set in configuratio map
var sDBAddress = configurationMap.get('ORBIS_DB_ADDRESS_KHVAM')
var sDBUser  = configurationMap.get('ORBIS_DB_USER')
var sDBPassword = configurationMap.get('ORBIS_DB_PW')
var status = S…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Pensive-Potato
Comment options

@Pensive-Potato
Comment options

@Hueli
Comment options

@Pensive-Potato
Comment options

@Hueli
Comment options

Answer selected by Pensive-Potato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants