Infor Process Automation and File Channels

 5 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Todd Mitchell
Veteran Member Send Private Message
Posts: 87
Veteran Member

I am brand new to Infor Process Automation.  I have finally achieved 90% of what I want to accomplish in my process flow using Infor Process Automation.   One of the 2 remaining pieces is to make sure the process only runs from 6:00 am to 8:00 pm.  

I created a File Channel to "watch for" and recognize when a file shows up on my Lawson application server.  However, I only want this file channel active from 6:00 am to 8:00 pm.   I am aware that there is a Flow scheduling capability but have been informed that there is no way to schedule the File Channel activity.  Is it possible to create a flow that changes the File Channel from Active to Inactive and vice versa?

 

Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
Hi Todd Mitchell,

I suppose you could create a pair of simple flows - one that activates the channel and one that deactivates it, and then run those flows on a schedule at 0600 and 2000. There are "activate" and "deactivate" actions on the pfifilechannel business class which you should be able to call to make this happen.
  
Good Luck!

Kelly
Kelly Meade
J. R. Simplot Company
Boise, ID
David Burnham
Basic Member Send Private Message
Posts: 9
Basic Member
We had a similar issue. What we did was to set up a loop in the beginning to write/append the input file to a work file. 

Then we check the date (time in your case). If it's within the operational window the rest of the flow runs, if not then the flow ends. 

The catch is if a file(s) come in outside of the window they will sit and wait for the next file. To get around this have a scheduled task write an empty file to the input file location. It triggers the flow inside the operational window and the work file is then processed. 
Todd Mitchell
Veteran Member Send Private Message
Posts: 87
Veteran Member
Thank you very much -- this is exactly what I want to do.  However I have one problem -- I don't know what a "pfifilechannel business class" is.  
Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member

Sorry, my mistake.  It should be "PfiChannel" business class. 

A business class is a combination of business logic, user interface, and data.  When you use a "Landmark" node in IPA, then you are doing something to a business class.  In this case, you want to run the "ActivateAllReceivers" or "Disable" actions on the "PfiChannel" business class.

See the attached for an example of the "Activate" flow.


Good Luck!
Attachments
Kelly Meade
J. R. Simplot Company
Boise, ID
Todd Mitchell
Veteran Member Send Private Message
Posts: 87
Veteran Member
Thank you for that clarification.  As I was looking to see if I could figure out what you were referring to, I looked at the Landmark node and was thinking that was it.   I now have to contact our IPA installer because he did not set up the Landmark access correctly.

Thank you so very much as this is exactly what I am trying to accomplish.