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:
Raju
Past 24 Hours:
1
Prev. 24 Hours:
1
Overall:
5205
People Online:
Visitors:
371
Members:
0
Total:
371
Online Now:
New Topics
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
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson Smart Office
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor CloudSuite
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:39 PM
Hi, I need help with an error on syteline while us
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
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
1369
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
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
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
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
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: 3353
7/27/2011 4:25 PM
Is this Windows?
Are you running this from the Designer?=
kim
Basic Member
Posts: 15
7/28/2011 2:44 PM
Morning all:
we are Unix.
yes the original jobs are owned and submitted by pfuser.
yes pfuser is setup in laua.
John Henley
Posts: 3353
7/28/2011 3:25 PM
Are you seeing this behavior from the designer or on the server?=
kim
Basic Member
Posts: 15
7/28/2011 3:52 PM
I am within the ProcessFlow designer.
Sam Simpson
Veteran Member
Posts: 239
7/28/2011 4:32 PM
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
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: 3353
7/28/2011 4:56 PM
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
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
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.