You use fault to cancel the parent activity (and all its running child activities) with a userdefined error code and continue execution in the corresponding faulthandler. The faulthandler of the parent activity is processed first.
The error is intercepted with the appropriate faulthandler (default or case) (see section “faulthandler”). The activity associated with the faulthandler is executed.
All file transfer requests that were started by the parent activity and are still running are also cancelled (ft_cancel). This may result in the execution of the remoteFailureScript (see section “remoteFailureScript”).
If it is not possible to assign a faulthandler to the error code then the entire script is aborted.
Restrictions
The error code must not start with "ft_". These error codes are reserved for openFT-Script.
Format
<fault code="faultcode"> comment? </fault>
Attributes
Name | Value | Meaning |
| Text | The error code which can be intercepted in a faulthandler. |
Example
|
Two file transfers are performed in parallel.
If an error occurs during one of the transfers then this is indicated by the error code intercept. This is intercepted in the faulthandler.
The other file transfer is cancelled (ft_cancel).
The two target files are deleted in the faulthandler. Any errors which occur are ignored.
Using this script either both files or neither of the files reach their destination.
ft_cancel then this may continue to run even when the faulthandler is already active.