Thanks to our GUI based configuration tool QWFIX Enterprise Manager, all configuration can be edited by user through the Enterprise Manager and saved into the Repository Server.
Initializing the QWFIX Order Manager is simple. It only takes 2 lines of code. It is recommended the initialization process takes place soon after the FIX engine is initialized. FIXStandaloneApplication.FIXEngineInitialized event handler is the perfect place for the Order Manager initialization process.
The code block below demonstrates the QWFIX Order Manager initialization within a FIXStandaloneApplication.FIXEngineInitialized event handler. FIXOrderManager only requires a reference to a FIXEngine in order to perform initialization. And it is only one line of code.
The second line of code in the snippet below enables remote management using QWFIX RTAnalyzer. It only works with FIXStandaloneApplication. That single line of code will enable remote Visual Lambda business rule management for order manager.
FIXOrderManager.AddFIXEngine(fixEngine, app.VisualLambdaLoader); FIXOrderManager.EnableRemoteManagementService(app)
FIXOrderManager defines several static methods. Once the FIXOrderManager.AddFIXEngine is called, the Order Manager configuration associated with the FIX engine is analyzed. The FIX sessions that support order management will be properly initialized. Further operations can then be performed on those FIXSessionOrderManager instances.
Each FIXSessionOrderManager instance corresponds to a FIX session that supports order management. FIXSessionOrderManager manages the order flow of the particular session.
Once FIXOrderManager.AddFIXEngine is called, the FIXSessionOrderManager instance that corresponds to the FIX session in the engine can be retrieved by calling FIXOrderManager.GetSessionOrderManager static method.