Altova Global Resources Print this Topic Previous Page Up One Level Next page

Home >  Customizing MapForce >

Altova Global Resources

Altova Global Resources represent a way to refer to files, folders, or databases so as to make these resources reusable, configurable and available across multiple Altova applications. For example, let's assume that several MapForce mappings routinely read data from the same XML file which is critical for your business workflow. If this file has been renamed on the disk for whatever reason, this would cause "file not found" errors in multiple contexts, and break the workflow. To prevent such issues, it is possible to create a so-called "file alias" (in other words, a Global Resource), and change all mappings to refer to this Global Resource instead of the actual file on disk. This way, if the file name ever changes, you would only need to change the file alias, in one place.


Global Resources can be defined and shared between the following Altova desktop applications: Authentic, DatabaseSpy, MobileTogether Designer, MapForce, StyleVision, and XMLSpy. On the server side, Global Resources can be consumed by the following Altova server applications: MapForce Server, MapForce Server Advanced Edition, RaptorXML Server, RaptorXML+XBRL Server.


Global Resources (be they file, folder, or database references) can be used in MapForce for various scenarios, for example:


To supply a configurable file path as mapping input, see Example: Run Mappings with Variable Input Files.
To redirect the mapping output to a configurable path. For more information, see Example: Generate Mapping Output to Variable Folders.
To supply a configurable path to a StyleVision Power Stylesheet (.sps) file, if one is used by the mapping. For example, instead of referencing a plain StyleVision .sps file from the MapForce component settings, you could refer to an .sps file previously defined as a Global Resource, which has two possible configurations (let's say, "Website.sps" and "Print.sps"). See also Styling Mapping Output with StyleVision.
To reuse a database connection. If a database has already been defined as a Global Resource (in any Altova application), you can connect to it without going through all the set-up steps again, see Using a Connection from Global Resources.
To easily switch the database from which the mapping reads data, or the one to which the mapping writes data (provided that two or more databases have the same structure but different data, see Example: Switch Databases).



FlowForce Server does not support Global Resources. MapForce Server can consume Global Resources either at the command line or at API level.
MapForce Basic Edition does not support consuming database connections defined as Global Resources.

© 2019 Altova GmbH