Custom checks

Implementing a check

Before executing a transport, Safe TMS runs various checks to reduce the risks regarding your live system(s).

Naturally; you would want to implement your own additional checks - each company has its own rules and regulations.

Here are the steps to create a custom check:

  • Create a new class, implementing the interface YIF_SAFETMS_OBJ_REL_REQ_DECOR
  • Code your own checks and controls

You can run a "Where Used List" on YIF_SAFETMS_OBJ_REL_REQ_DECOR to see the standard checks of Safe TMS, and code your class in a similar fashion.

Implementing an auto-fix

Safe TMS provides auto-fixes for some of the warnings generated during checks. For example; it can automatically include related objects into the transport if you click the "Auto-Fix" button on the GUI.

If your custom check can provide an auto-fix as weel, here are the steps involved:

  • Determine an ID for your auto-fix action. Let's call it Z001.
  • Ensure that your check class (described above) returns Z001 in OUTPUT of YIF_SAFETMS_OBJ_REL_REQ_DECOR GET_LIST.
  • Create a new class, implementing the interface YIF_SAFETMS_OBJ_REL_REQ_ACTION
  • Code your own auto-fix
  • Register your fix class into the table YTSAFETMS_ORRA.

A typical example:

  • YCL_SAFETMS_VIS_MISS_REPO is a check class
  • YCL_SAFETMS_ORRA_INC is an auto-fix class

You can mimic the coding logic in those classes to implement your own.