![]() ![]() |
Reference Type: Supported, Category: KIDS, ICR#: 10141
The $$NEWCP^XPDUTL extrinsic function creates a checkpoint in pre- or post-install routines during KIDS installations. The checkpoint is stored in the INSTALL (#9.7) file.
Pre-and post-install checkpoints are stored separately, so you can use the same name for a pre- and post-install checkpoint if you wish:
You can use $$NEWCP^XPDUTL to create a checkpoint with or without a call back. You can also store a value for the parameter node, if you wish.
Checkpoints created with call backs have that call back automatically executed by KIDS during the appropriate phase of the installation:
Checkpoints created without a call back cannot be executed by KIDS; instead, they provide a way for developers to store and retrieve information during the pre-install and post-install phases. Rather than storing information in a local or global variable, you can store information in a checkpoint parameter node and retrieve it (even if an installation is re-started).
If the checkpoint you are trying to create already exists, the original parameter and call back is not overwritten.
$$NEWCP^XPDUTL(name[,callback][,par_value])
name: |
(required) Checkpoint name. |
callback: |
(optional) Call back (^routine or tag^routine reference). |
par_value: |
(optional) Value to which the checkpoint parameter is set. |
returns: |
Returns:
|