Basic Principles
The executor library should be loaded into your model or package as follows:
uses "executor"
When you want to interact with an Xpress Executor component instance (design, staging or production), you should declare a variable of the 'Executor' type to represent the Executor component instance.
declarations myexecutor: Executor end-declarations
Once the 'Executor' variable has been initialized with your component's location and credentials (see chapter Authenticating), it can be used with Executor functions such as executorexecute, executorwaitfor and executorfetchresult. If you need to access more than one Executor component instance, you can declare multiple Executor variables.
After calling each function on the executor library, you should check the value of Executor.status for any errors - if this is any value other than EXECUTOR_OK then an error has occurred. In an error case, Executor.status will contain an error code and Executor.lasterror will return a description of the error.