Forcing Single-Threaded VBScript Execution - HL7 Module - English - Foundation 22.1 - OnBase - Premier - external - Standard - Essential - Premier - Standard - Essential

HL7 Module

Platform
OnBase
Product
HL7 Module
Release
Foundation 22.1
License
Premier
Standard
Essential

By default, VBScript scripts invoked by the HL7 Listener are run concurrently in background worker threads. This is preferable and most efficient for the HL7 Listener. In some cases, scripts may be required to be executed under OnBase 's main thread, which is also single-threaded. These cases could be:

  • Use of OnBase Client API

  • Other heavy use of non-HL7 API

  • Use of any API that interacts with OnBase user interface

  • Troubleshooting

To force an HL7 script to run in the main thread:

  • Use the entry point Main35 instead of OBHL7Script.

  • Create an object to access OnBase .Application.

  • Use this object to access the HL7ScriptContext object.