VBscript variable to income job
Posted: Wed Jun 08, 2022 9:51 pm
Hello !
I received a VBscript and I need to make it read the file that are coming from the flow and them export the resultant files to the flow also.
The script is written with fixed folders for incoming and outcoming files.
How can I change that with Switch variables to make this work ?
The strXMLEntrada is the incoming folder that XML arrives
and strLocalXMLSaida is the output folder that the result of script will send the files
I appreciate any help!
I received a VBscript and I need to make it read the file that are coming from the flow and them export the resultant files to the flow also.
The script is written with fixed folders for incoming and outcoming files.
How can I change that with Switch variables to make this work ?
Code: Select all
' Is invoked each time a new job arrives in one of the input folders for the flow element.
' The newly arrived job is passed as the second parameter.
Function jobArrived(s, job)
'Abrir XML e gerar outro a partir deste
'Cada Row será um XML. Nome dos XMLS é CNPOARQOS & "_" & sequencial
'---------------------------------
Dim i, strNomeXMLSaida, strXMLEntrada, strLocalXMLSaida, strXML
'*************************** PARAMETRIZAR ***************************
strXMLEntrada = "D:\TRABALHOS\Piffer Print\OS_XML_IN_OUT\ENTRA_1XML_OS\OS_25102_dados_ecalc.xml"
strLocalXMLSaida = "D:\TRABALHOS\Piffer Print\OS_XML_IN_OUT\SAI_XMLS_OS"
'********************************************************************
and strLocalXMLSaida is the output folder that the result of script will send the files
I appreciate any help!