[progress Communities] [progress Openedge Abl] Forum Post: Re: A Better Approach?

  • Thread starter Thread starter smat-consulting
  • Start date Start date
Status
Not open for further replies.
S

smat-consulting

Guest
I usually do not execute in the AppServer agent itself any process that can take more than 1 or 2 seconds. Instead I save the input data somewhere convenient and add an entry to the queue, which is worked off by a batch-process. In your case, you could simply save the file in a directory. You could have the batch process periodically check if there's a file in this directory and when it finds one, work it off. After working it off, it can send an email (or other kind of notification) to the user that initiated the process, including the collected messages about problems the process encountered. This approach allows the user to continue with their work immediately, and makes it easier for me (i find) to program the backend process. Also, there are always processes that need to be run periodically without a user initiating them - a batch-process queue allows for easily scheduling such repeating processes - so I always have such a process anyhow. Adding a new process to it is rather easy...

Continue reading...
 
Status
Not open for further replies.
Back
Top