A specialized set of MID Server Script Includes.
A wrapper around custom JAR files resulting in set of MID Server Script Includes used to push/ read files from MID Server.
Though there are a lot of MID Server Script Includes available, all of them are not at one place. This repository has two goals at the time of writing.
- Be simple and blazingly fast.
- Be at one place.
Below are the list of JAR Files you need for SNPort to work.
-
Apache Commons IO : You will find the Jar file here This is extensively used to do read and write operations at native speed.
-
Open CSV : Download the Jar file from [SourceForge] (https://sourceforge.net/projects/opencsv/) This library is used for all CSV related operations.
For tutorial on installing Jar files, here is an [Awesome Video] (https://www.youtube.com/watch?v=tOHuFVE3XNQ) from John Anderson.
####PT_WriteClasses
All the files in this folder will contain Script Include that write from ServiceNow into the MID server.
- PT_PostFile.js => A blazingly fast MID Server SI to move any file from ServiceNow into MID Server. If the folder that's passed is not present, creates one.
- PT_CSVWriter.js => A blazingly fast MID Server SI to create CSV files given an array of arrays (of data)
- Many more coming soon! ( I'm in the process of cleaning a lot of Script Includes, that can a) Read XML and CSV files from MID Server b) Post the data into an Import set c) Apply filter to pull selected files.
- By setting
this.debug
to true, debug messages will be sent into theagent.log.0
file present in thelogs
folder ofagent
. - Debug messages are on by default.
- Example snippetts on how to call various MID Server Script Includes are present in the Sample Invocation folder.
- Write Tests.
- Write examples.