Project context

ProjectContext provides access to the following.

  • User exit registry (UserExits)

  • Organization configuration (Settings)

  • Logger (Log)

  • Database connection factory and pool (DatabaseConnectionFactory)

  • Various data access objects. Such as purchase orders, country data, tax data, and many others.

Note The settings for some properties depend on the current organization. For example the data access objects. The current organization depends on the document that is currently being processed. The next document organization configuration settings and data access objects may be different. Because of this, it is recommended not to cache any of this information.

An instance is passed as a parameter to the Initialize method of your ICustomInitializer implementation. It is recommended that you keep a reference in the class because it is likely that this instance is needed by one or more of your user exit implementations.