Comparing version 1.0.4 to 1.0.5
@@ -10,34 +10,18 @@ #!/usr/local/node/bin/node | ||
// support chained requests using config.cfgarr object to invoke multiple services | ||
/* chaining example | ||
{ | ||
"type": "SOAP", | ||
"cfgarr": [ | ||
{ "config": ".tmp/wsa.json", "file": ".tmp/soap2.json"}, | ||
{ "config": ".tmp/wsa.json", "file": ".tmp/soap.json"} | ||
], | ||
"request": { | ||
"url": "http://HOSTNAME:7901/mftapp/services/transfer/SOAP2File", | ||
"method": "POST", | ||
"headers": { "Content-Type": "text/xml; charset=utf-8" }, | ||
"body": "", | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" }, | ||
"agentOptions": { | ||
"ca": "hcmcert.cer", | ||
"Connection": "Keep-Alive", | ||
"securityOptions": "SSL_OP_NO_SSLv3" | ||
} | ||
} | ||
} | ||
} | ||
*/ | ||
//console.log('MFT2HCM: Invoking Upload'); | ||
upload.upload(process.argv, function(err, respcode, jcfg, stats) { | ||
//console.log('MFT2HCM: Upload stats: 0', stats); | ||
if (err) { | ||
// do not remove this as it breaks integration with RunScript Error handling | ||
console.log('Upload Error: ' +err); | ||
console.trace(); | ||
process.exit(1); | ||
} else { | ||
//console.log('MFT2HCM Upload JCFG: ', jcfg); | ||
//console.log('MFT2HCM: File stats: ', stats); | ||
// using stats as context to communicate UCM Get Filepath for MFT RunScript 'newfile' File Injection | ||
if (stats && stats.ucmfilepath) | ||
console.log('newfile=' +stats.ucmfilepath +' '); | ||
}; | ||
@@ -44,0 +28,0 @@ }); |
@@ -11,5 +11,11 @@ { | ||
"headers": { "Content-Type": "text/xml; charset=utf-8" }, | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" } | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" }, | ||
"agentOptions": { | ||
"ca": "ucmcert.cer", | ||
"Connection": "Keep-Alive", | ||
"securityOptions": "SSL_OP_NO_SSLv3" | ||
} | ||
} | ||
} | ||
{ | ||
"name": "mft2hcm", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "NodeJS app to copy files from MFT flow to UCM and Oracle HCM", | ||
@@ -5,0 +5,0 @@ "main": "mft2hcm.js", |
@@ -11,5 +11,11 @@ { // cmd line example: node mft2hcm.js docid=659 config=ucmget.json file=UCM-PAYLOAD-GET | ||
"headers": { "Content-Type": "text/xml; charset=utf-8" }, | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" } | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" }, | ||
"agentOptions": { | ||
"ca": "ucmcert.cer", | ||
"Connection": "Keep-Alive", | ||
"securityOptions": "SSL_OP_NO_SSLv3" | ||
} | ||
} | ||
} | ||
@@ -12,5 +12,11 @@ { // cmdline example: node mft2hcm.js searchfile=mft2hcm.js config=ucmsearch.json file=UCM-PAYLOAD-SEARCH | ||
"headers": { "Content-Type": "text/xml; charset=utf-8" }, | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" } | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" }, | ||
"agentOptions": { | ||
"ca": "ucmcert.cer", | ||
"Connection": "Keep-Alive", | ||
"securityOptions": "SSL_OP_NO_SSLv3" | ||
} | ||
} | ||
} | ||
@@ -10,5 +10,10 @@ { // cmd line example: node mft2hcm.js searchfile=mft2hcm.js config=ucmsearch2.json file=UCM-PAYLOAD-SEARCH | ||
"headers": { "Content-Type": "text/xml; charset=utf-8" }, | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" } | ||
"auth": { "user": "USERNAME", "pass": "PASSWORD" }, | ||
"agentOptions": { | ||
"ca": "hcmcert.cer", | ||
"Connection": "Keep-Alive", | ||
"securityOptions": "SSL_OP_NO_SSLv3" | ||
} | ||
} | ||
} | ||
19501
14
129