I need some help getting a flow to call a batch job. My goal is to pass variable to this job, but right now, I can not get it to even run the job. I can run the job from the browser (http://10.255.32.10/cgi-lawson/jobrun.exe?FUNC=run&USER=tcollier&JOB=REQUPDT&OUT=text)
successfully, but not from a flow itself. The statement looks like it is created ok and no error messages.
Any thoughts?
Thanks
We use two steps to submit a batch job from a flow. The 1st updates the job parameters:
_PDL=<!appProdline>&_TKN=MH911&_EVT=CHG&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Change&JOB-NAME=MH911&USER-NAME=lawsonbatch&USERID=<!PAEMP_FORMER_LST_NM>&EMPLOYEE=<!Employee>&_DELIM=%09&_OUT=TEXT&_EOT=TRUE
The 2nd initiates (submits) the job itself:
Web Program: cgi-lawson/jobrun.exe
Web Call String: FUNC=run&USER=lawsonbatch&JOB=MH911&OUT=text
I'm assuming you already have the job defined, etc?
Have you tried the process flow debugger? That may give you a message if it fails.
I ran it as an external call and it ran ok.
Is it possible to pass variables from the flow to a korn shell script via cgi-call?
The way we have accomplished this is to create a batch job that in turn calls the shell script with parameters. Our process flow sets the parameters on the batch job and submits it. Kind of a round-about method, but it works. If you find a direct method to initiate a shell-script let us know!