PFI Scheduler

 11 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
prakash
Advanced Member
Posts: 27
Advanced Member
New Poster
New Poster
Congrats on posting!
Can we Schedule a flow from ProcessFlow Scheduler every minute?
John Henley
Posts: 3364
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Only if you set it up 60 times :)
Thanks for using the LawsonGuru.com forums!
John
David Williams
Veteran Member
Posts: 1127
Veteran Member
New Poster
New Poster
Congrats on posting!
I can't imagen why you'd need to do this, but you could have your flow just loop back to its beginning after building a pause into it. You could also use a WorkObject to trigger the same flow again (but that will create a new WorkUnit everytime).

What are you trying to accomplish?
David Williams
KK - Infor
Veteran Member
Posts: 61
Veteran Member
I believe LPA scheduler offers this functionality. Will have to check.
If you're on an older version, as David said...I'd use a flow looping in a WorkObject node and a Pause.
prakash
Advanced Member
Posts: 27
Advanced Member
New Poster
New Poster
Congrats on posting!
every minute we need to check the customer table for the new customers added and send a mail notification to finance for approval.
prakash
Advanced Member
Posts: 27
Advanced Member
New Poster
New Poster
Congrats on posting!
we are using pf runtime 9.0.4.
prakash
Advanced Member
Posts: 27
Advanced Member
New Poster
New Poster
Congrats on posting!
Ok thank! i will go for a loop with workobject. Can u please help me in pausing the flow for one minute.
David Williams
Veteran Member
Posts: 1127
Veteran Member
New Poster
New Poster
Congrats on posting!
Build this function within an Assign node (it doesn't have to be associated to a variable - just click the Add JavaScript button)

var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < 5000);

This waits 5 seconds so you'd have to play with the value you use.
David Williams
prakash
Advanced Member
Posts: 27
Advanced Member
New Poster
New Poster
Congrats on posting!
Thanks a lot! I willimplement this.
Deleted User
New Member
Posts: 0
New Member
By doing what is suggested you are tying up a thread soley for this purpose when it can be accomplished in much more effective ways that don't draw the same resources. Keep in mind you only have a maximum of 8 flows that can run actively at the same time (excluding those waiting for inbasket action) so to tie up a thread on the off chance of an event occuring is not good design.

It is far better to create a trigger in AR09/AR10 (Add/Update Customer forms) on the Add function than to be polling constantly for that same condition.
prakash
Advanced Member
Posts: 27
Advanced Member
New Poster
New Poster
Congrats on posting!
Ok!.
ShawnV
Advanced Member
Posts: 37
Advanced Member
New Poster
New Poster
Congrats on posting!
I agree with Gary that tying up a thread may not be the most efficient and a trigger on the add for AR09/AR10 is better. However, also be aware of the fact that AR customers can also be 'batch interfaced' from the AR501 and AR550 programs. You may need to monitor for those as well.