Home
Forums
New posts
What's new
New posts
Latest activity
Advertise
Resources
Log in
Register
What's new
New posts
Menu
Log in
Register
Install the app
Install
Home
Forums
JD Edwards® Enterprise One / One World Discussions
JD Edwards® EnterpriseOne Developers
Polling from within ER
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MrChuckles" data-source="post: 121950" data-attributes="member: 6276"><p>I am looking at integrating a third-party application with EnterpriseOne and have a question regarding 'polling' on the return transaction. </p><p></p><p>The plan is execute a call from within a 'C' business function and interactively call a custom NER. This NER would parse the data, create a flat text file (ie. a REQUEST transaction), and then copy the flat file (REQUEST) to an 'Exported' directory on the network. The third-party software continuously monitors for files in the 'Exported' directory, processes the transactions, creates a separate flat text file (ie. a RESPONSE transaction), and then copies the RESPONSE text file to an 'Import' directory on the network.</p><p></p><p>My question is, how do I code the NER to keep polling the 'Import' directory to see if a RESPONSE has been generated? I do not want the NER to return to the calling 'C' business function until either, a RESPONSE has been received, or a pre-determined amount of time has passed (eg. 30 seconds, or so, in which case I'd pass back a status of 'timed out').</p><p></p><p>I know how to check to see if a RESPONSE has been returned, but I'm not sure how to assign a predetermined 'TIME' limit to the loop?</p><p></p><p>Any 'best practice' ideas, or constructive thoughts would be appreciated for someone who has done something similar.</p><p></p><p>Thanks for your assistance.</p></blockquote><p></p>
[QUOTE="MrChuckles, post: 121950, member: 6276"] I am looking at integrating a third-party application with EnterpriseOne and have a question regarding 'polling' on the return transaction. The plan is execute a call from within a 'C' business function and interactively call a custom NER. This NER would parse the data, create a flat text file (ie. a REQUEST transaction), and then copy the flat file (REQUEST) to an 'Exported' directory on the network. The third-party software continuously monitors for files in the 'Exported' directory, processes the transactions, creates a separate flat text file (ie. a RESPONSE transaction), and then copies the RESPONSE text file to an 'Import' directory on the network. My question is, how do I code the NER to keep polling the 'Import' directory to see if a RESPONSE has been generated? I do not want the NER to return to the calling 'C' business function until either, a RESPONSE has been received, or a pre-determined amount of time has passed (eg. 30 seconds, or so, in which case I'd pass back a status of 'timed out'). I know how to check to see if a RESPONSE has been returned, but I'm not sure how to assign a predetermined 'TIME' limit to the loop? Any 'best practice' ideas, or constructive thoughts would be appreciated for someone who has done something similar. Thanks for your assistance. [/QUOTE]
Verification
Post reply
Home
Forums
JD Edwards® Enterprise One / One World Discussions
JD Edwards® EnterpriseOne Developers
Polling from within ER
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top