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:
Starr
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5327
People Online:
Visitors:
451
Members:
0
Total:
451
Online Now:
New Topics
Lawson Add-Ins for Microsoft Office
Lawson Add-in
9/30/2025 6:51 PM
I am looking for a Lawson Add-ins query to add new
Lawson S3 Procurement
Anyone getting PO 0000 not found for company error in PO23?
9/30/2025 2:45 AM
Anyone getting PO 0000 not found for company error
Lawson Add-Ins for Microsoft Office
PO20 - Cancel PO via Add-in
9/25/2025 8:03 PM
Is it possible to cancel PO's using add-ins? I
S3 Systems Administration
S3 Payroll - PayStubs
9/18/2025 6:58 PM
Looking for a reliable solution to streamline the
S3 Systems Administration
Quick Access report
8/25/2025 7:17 PM
Looking for a good way to see who has access Lawso
S3 Customization/Development
LP01 hiding a PTO plan from the list
8/13/2025 4:44 PM
Hi all. is there a way to hide a specific PTO&n
Lawson Business Intelligence/Reporting/Crystal
GLTrans - PO Line/MAInvdtl
8/6/2025 6:13 PM
Hello, we have an existing tabular model for fina
IPA/ProcessFlow
Retrieving GUID from InforOS
7/25/2025 2:22 AM
Hello everyone, I was wondering if there is a way
IPA/ProcessFlow
IPA for forwarding cost messages (MA64/MA66.3)
7/23/2025 6:07 PM
When a buyer has an invoice cost message where the
Lawson Portal
Lawson ESS customization
6/23/2025 10:28 AM
I want to add new links and customize the ESS (sel
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3293
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
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: 3362
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: 3362
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: 3362
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.