Supplied Service

ITP/Server comes with a Service that runs an ITP Model.

RunMdl

This Service runs an ITP Model. This Service has three required parameters and three optional ones.

RunMdl

Required

The first parameter in a request must always be the name of the Service you want to use.

Model, path and name

Required

The path must be given relative from the folder Models in the folder ITPWORK. The name of the ITP Model must be given without the .itp extension.

Note

models from outside the folder ITPWORK\Models will not run.

Result document, path and name

Required

Path, name and extension of the result document.

Keys

Optional

See below

Extras

Optional

See below

Parameters

Optional

See below

Keys and Extras

Key and extra 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 instance 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. Keys and Extras can be passed to the Service as a string of values divided by semicolons (;). These values must be in the same order as expected in the model.

Parameters

PreCMD("…")

AS/400 Connection only.

The command pre is executed after the library list is set.

OnSuccessCMD("…")

AS/400 Connection only.

The command OnSuccess is executed if the model completed successfully.

OnFailureCMD("…")

AS/400 Connection only.

The command OnFailure is executed if the model failed.

PostCMD("…")

AS/400 Connection only.

The command Post is executed at the end of the run (after OnSuccess or OnFailure).