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
Delay in 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:
BDell92
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5275
People Online:
Visitors:
372
Members:
0
Total:
372
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
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
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
Delay in Process Flow
Please
login
to post a reply.
13 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
L G
Advanced Member
Posts: 38
5/24/2011 8:31 AM
Hi
I have 2 web run nodes that call 2 different jobs in a process flow. Now I need to introduce a delay in the flow or a way to ensure that the first job has completed before the second one runs.
or is there a way to change the step parameters of a multi step job from within Process Flow if I integrate the 2 web run nodes in Process Flow.
Both the jobs that are being called within the 2 web run are also modified within the flow via AGS calls with different parameters on each run based on the service variables.
Can you suggest the best approach
David Williams
Veteran Member
Posts: 1127
5/24/2011 10:41 AM
Split
If you add &WAIT=true to the end of your jobrun string then ProcessFlow will wait until the job finishes before moving forward.
kim
Basic Member
Posts: 15
7/27/2011 2:02 PM
Split
Morning David:
Thank you in advance for your help.
RE: use of &WAIT=true with the webrun
Background:
pfuser = service account for process flow
I have an AGS call to create/update parameters for the batch job followed by the webrun if the create/update were successful. When the webrun command is executed, job is active in jobschd, it does wait but only one minute then it executes again and fails even though the job is still active in jobschd, triggering a failure step when in fact it has not failed--yet.
I am making an assumption that the subsequent executions after each minute that ProcessFlow is querying GEN.QUEUEDJOB-STATUS to validate that the job is indeed still running. Is this a true assumption? If so, why would it fail on subsequent tries? Do you know of any documentation that gives troubleshooting tips and tricks?
error message if submitted job runs longer than one minute:
Executing WebRun Activity WebRun3770.....
Posting to URL cgi-lawson/jobrun.exe?FUNC=run&USER=pfuser&JOB=0727110722&WAIT=true
Post content:
WebRun3770_errorCode = 1
WebRun3770_informationCode = 0
WebRun3770_returnMessage = Error connecting to /cgi-lawson/jobrun.exe?FUNC=run&USER=pfuser&JOB=0727110722&WAIT=true with user pfuser Query string
WebRun3770_outputData =
Error while executing WebRun activity
Error connecting to /cgi-lawson/jobrun.exe?FUNC=run&USER=pfuser&JOB=0727110722&WAIT=true with user pfuser Query string
WebRun3770_result = Error connecting to /cgi-lawson/jobrun.exe?FUNC=run&USER=pfuser&JOB=0727110722&WAIT=true with user pfuser Query string
Executing Stop Activity .....
edited after posting to correct soit would not show the hyperlinks but the text
David Williams
Veteran Member
Posts: 1127
7/27/2011 2:56 PM
Split
This actually looks like a security error. Is pfuser setup in laua? It has to be in order to run a batch job.
David Williams
Veteran Member
Posts: 1127
7/27/2011 2:59 PM
Split
Are the jobs setup under the pfuser ID? You can run a job defined as user1 if you have security rights and the jobrun.exe has to be set to run the job as the user the job is defined for.
John Henley
Posts: 3351
7/27/2011 4:25 PM
Split
Is this Windows?
Are you running this from the Designer?=
kim
Basic Member
Posts: 15
7/28/2011 2:44 PM
Split
Morning all:
we are Unix.
yes the original jobs are owned and submitted by pfuser.
yes pfuser is setup in laua.
John Henley
Posts: 3351
7/28/2011 3:25 PM
Split
Are you seeing this behavior from the designer or on the server?=
kim
Basic Member
Posts: 15
7/28/2011 3:52 PM
Split
I am within the ProcessFlow designer.
Sam Simpson
Veteran Member
Posts: 239
7/28/2011 4:32 PM
Split
I added a javascript function in pflow.js to pause for a number of milliiseconds (1000 milliiseconds = 1 seconds) by using date variables. I used this a lot specially to monitor for jobs and also for checking multiple interface files used by my ScanFileClient. An example would be processing two files for AP. The ScanFileClient will checked if the second file is already present. If the file is not there yet, then it will pause for 5 minutes. It will also count how many times the flow has loop thru the pause function and if the count exceeded the loop limit (like 3 times), then it will send email message that the file did not reach the system.
It just a simple script and let me know if want me to post it here.
kim
Basic Member
Posts: 15
7/28/2011 4:42 PM
Split
Hi Sam,
We do have older process flows that use AGS to update/add job, jqsubmit to submit it, and query QUEUEDJOB with sixty second pause loops. When I saw David's webrun solution and wanted to give it a try so we wouldn't have to do it the old way if at all possible.
Thanks for the suggestion.
John Henley
Posts: 3351
7/28/2011 4:56 PM
Split
I experienced similar behavior (on Windows) for the webrun node when running from the designer.
However, the flow worked just fine once deployed and run on the server.
kim
Basic Member
Posts: 15
7/28/2011 7:16 PM
Split
Thanks John it did as expected when deployed to the server. I then took it a step further and purposely had the job go into needs recovery and the webrun node finished with the Found Success string message. I am guessing I will always need to query QUEUEDJOB after the webrun node to confirm it was actually successful or failed so I will continue down that path unless I hear otherwise.
Love LawsonGuru for all the help and support! Thank you all.
Shane Jones
Veteran Member
Posts: 460
7/29/2011 1:12 PM
Split
That is a great solution. I have flows where I do a simple could in a branch and it just loops through a VAR+1 until it reaches a set number and then proceeds with the flow. It works when I can't query something and just need an abitratry pause. This solution would probably be much cleaner and use less system resources.
Thanks
Please
login
to post a reply.