To facilitate running a model the RunMdl Service is provided.
The following parameters are applicable to this service:
Model |
Required |
|
The model to be executed (a *.itp file). This can be given by name without the extension. This model must be in the folder Models of the folder ITPWORK . |
Result |
Optional |
|
The result document, path and name and extension. The programmer is responsible for the correct extension. The path is optional, if no path is given it is up to the requesting application to receive the file and move it to a destination. If no value is given the result will be written in result.doc. |
Keys and Extras |
Optional, depending on your model |
|
Keys and Extras parameters are used to pass information to an ITP Model. You can use this mechanism when you integrate ITP into your application. You can - for example - use the key or extra parameters to identify the customer for whom you want to create a policy or an invoice. The ITP Model can then use the identifying information to retrieve the full customer name and address. |
Environment |
Optional. ITP Models are always run in an environment. Here, the name of the environment in which the ITP Model is run can be given. If no environment parameter is given, the default environment will be used to run the ITP Model. If an environment is passed that does not exist, an error is given. |
|
These must be passed to RunMDL as a semicolon (;) separated list. |
Note
A "!" in front of the list, as was the syntax in ITP/Document Services, will be accepted as well.