Initializing help system before first use

# 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 3 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.

Parent Topic Mosel Executor Package

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.