Initializing help system before first use

detach

Purpose
Detach the current model from its parent node.
Synopsis
procedure detach
Further information
1. This procedure detaches the model calling it from its parent model such that it becomes a master model running on a root node. As a consequence the connection to its parent model is closed, its model number is set to 0 and the node number of its instance becomes 0 (root node). The parent node is notified of the detachment by means of a termination event for the model which gets the status RT_DETACHED.
2. The operation is possible only if the hosting intance is running exclusively this model ( i.e. no submodel is loaded at the time of calling detach) and no file is open between the hosting instance or the model and its parent (in particular the default streams have to be set to "null:").
3. After a model is detached, it can no longer communicate with its parent using events or access files through the "rmt:" driver. The HTTP protocol (available through the module mmhttp) might be used as an alternative to the facilities provided by mmjobs in this case.
4. The instance running the detached model terminates automatically after the end of execution of the model.
5. This routine can only be called by a submodel running on a remote instance. It has no effect if used by a master model.
Related topics
Module

© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.