Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Concatenating Jobs on a Process Flow
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
John Bonin
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5270
People Online:
Visitors:
314
Members:
0
Total:
314
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Concatenating Jobs on a Process Flow
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Tony Rubi
New Member
Posts: 2
12/17/2013 7:38 PM
We are creating a process flow and we need to concatenate a set of jobs, so that after the first job is completed the second one starts, and the third one starts after the second and so on...
Now we are creating a process flow and passing each job as a system command node, then putting a user action node after it so that it checks if the job is still active (with a web run). The entire flow is working fine except that we have to wait at least one hour from one job to the next as the time out in the user action cannot be less than one hour.
Is there a way to concatenate them so that one job starts as soon as the previous one ends.
Is there an event that gets fired when a job stops with normal completion?
Bob Canham
Veteran Member
Posts: 217
12/17/2013 7:57 PM
Split
Rather than starting your job using the system command, you can use WebRun. The jobrun parameters [code]cgi-lawson/jobrun.exe[/code] can kick off a job and there is a &WAIT=TRUE parameter you can send so that the WebRun node doesn't move on until the job finishes. If you do that, you can just string your web run nodes together to kick off several jobs.
The syntax is:
[code] FUNC=run&USER=&JOB=&OUT=xml&WAIT=true[/code]
if you're using IPA you can also put [code]
63
[/code] in the success string field to know if it was a successful run or not.
Kyle Jorgensen
Veteran Member
Posts: 122
12/17/2013 8:01 PM
Split
Use the "WebRun" node to run the jobs. Set the 'wait' parameter to true. Have the output be XML. Have a node after the WebRun to check if the job completed normally (check for the string[code]
63
We do this to automate back office reports that we publish in LBI as well as automate large chunks of our payroll processing.
Tony Rubi
New Member
Posts: 2
1/2/2014 3:18 PM
Split
Thanks for the tip!
Now I have a couple of questions...
1) What if I don't get the STATUS 63? Should I loop back to the WebRun?
2) We put the WAIT in a job that took 42 minutes but the system only waited 13 minutes and then kicked in the next job. Why it didn't wait long enough?
Thanks for the help!
Kyle Jorgensen
Veteran Member
Posts: 122
1/2/2014 3:43 PM
Split
A status other than 63 means something went wrong with the job. You'll probably need to code the flow to notify someone to take a look at what's wrong. Something to note about these status codes; just because you got a status of 63 doesn't mean that the job did what it was suppose to. It just means the job finished successfully. However, every record could have encountered an error and wrote to an error file. We've incorporated a standard of doing a double-check on batch jobs. 1.) did the job finish successfully? 2.) did the job encounter any critical data errors?
If you use the 'wait' parameter, you'll need to make sure that the job timeout setting in WAS is set sufficiently high enough to accomodate your longest running job. I know that the setting is in WAS, unfortunately I'm on the programming side of our house and can't point you to the exact place where you set it. Perhaps others on this forum can.
Here's what the different job status mean:
[code] Status Translations : 00 : running 30 : Waiting 31 : Waiting Step 32 : Waiting on Time 33 : Waiting Recovery 34 : Needs Recovery 35 : Invalid Parameters 36 : Queue Inactive 37 : Hold 60 : Recurring Skipped 61 : Recovery Deleted 62 : Cancelled 63 : Normal Completion [/code]
Please
login
to post a reply.