× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi James

Thanks for the thought. I've considered a batch job, but this has to be done in a synchronous manner, as another process relies on the results being there right away. The other process, from a data warehouse pull, actually, writes out reports based on the fresh data.

Vern

On 1/24/2014 4:44 PM, James H. H. Lampert wrote:
Another approach:

I was asked to write a program that would issue email messages in
response to activity completion in our CRM product (Wintouch). And if
the activity had attachments, it had to include the attachments in the
message.

The only problem is that the exit point from which I would be launching
this was called AFTER the activity record was written, but BEFORE the
attachments had been saved to the IFS.

So after a bit of hemming and hawing, I came up with a solution: the
attachment program checks to see if the "attachment" flag on the record
is set, and if it is, it spawns itself off as a delayed batch job, and
if the spawned-off emailer still didn't see the attachment, it would
sleep (a second at a time, as I recall), while waiting for the
attachment to be written.

Surely, if all else fails (and assuming your duplicate-processing
program deals with the duplicates, rather than just checking for them),
you could spawn it off as a batch job.

--
JHHL


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.