Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "mft2hcm", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "NodeJS app to copy files from MFT flow to UCM and Oracle HCM", | ||
@@ -5,0 +5,0 @@ "main": "mft2hcm.js", |
@@ -31,2 +31,4 @@ # MFT2HCM | ||
Edit [mft2hcm.js](mft2hcm.js) then change first line to match the location of your nodeJS install location. I.E.: #!/usr/local/node/bin/node | ||
## Quick Start | ||
@@ -40,3 +42,3 @@ | ||
Execute command: mft2hcm.js config=mft2hcm.json file=[HCM_ZIP_FILE] dir=[LOCAL_DIR] | ||
Execute command: mft2hcm.js config=mft2hcm.json file=[HCM_ZIP_FILE] dir=[LOCAL_DIR] | ||
@@ -49,3 +51,3 @@ ### HCM Extract | ||
Execute command: node mft2hcm.js config=ucmsearch.json file=UCM-PAYLOAD-SEARCH searchfile=[DOC_TITLE] dir=[LOCAL_DIR] | ||
Execute command: node mft2hcm.js config=ucmsearch.json file=UCM-PAYLOAD-SEARCH searchfile=[DOC_TITLE] dir=[LOCAL_DIR] docidfile=[FILE_SPEC] | ||
@@ -56,8 +58,18 @@ ## Usage | ||
node mft2hcm.js file=[FILE SPEC] | [config=mft2hcm.json searchfile=[SEARCH_SPEC] passwords='PASS1 PASS2' dir=[FILE_LOCATION] businessobject=[HCM_OBJECT TYPE] | ||
node mft2hcm.js file=[FILE SPEC] | [config=mft2hcm.json searchfile=[SEARCH_SPEC] passwords='PASS1 PASS2' dir=[FILE_LOCATION] businessobject=[HCM_OBJECT TYPE] docidfile=[FILE_SPEC] | ||
``` | ||
file: location of input file | ||
config: location of JSON config file | ||
searchfile: file pattern to search for files in WebCenter/UCM | ||
passwords: array of passwords for for WebCenter, HCM etc endpoints | ||
dir: directory location of the file | ||
businessobject: HCM Object Type optionally substituted into the WebCenter/UCM PUT template | ||
docidfile: file location on shared file system used to identify document id of files already processed. | ||
``` | ||
### Config Files | ||
The config file is the same format as what is used in mft-upload and makes use of the "cfgarr" config array to make multiple SOAP calls as shown below. It embeds and reuses the request type endpoint and authentication used by the [HTTP Request package](https://github.com/request/request). | ||
The following 2 files are used together to implement the "Load and Notify" HCM Import use case. The first is an example of the mft2hcm.json config file that uses the cfgarr property to chain to the next config file that notifies the HCM server.. | ||
@@ -64,0 +76,0 @@ ``` |
203
19491
13