Return Values of Transformations
In those components in which transformations are defined, some return values can also be defined. They are integer numbers greater than, equal to or less than 0.
Positive or zero return values
ALL = Integer.MAX_VALUE
In this case, the record is sent out through all output ports. Remember that this variable does not need to be declared before it is used. In CTL,
ALL
equals to2147483647
, in other words, it isInteger.MAX_VALUE
. BothALL
and2147483647
can be used.OK = 0
In this case, the record is sent out through the single output port or output port 0 (if component have multiple output ports, e.g. Reformat, Rollup, etc. Remember that this variable does not need to be declared before it is used.
Any other integer number greater than or equal to 0
In this case, the record is sent out through the output port whose number equals to this return value. These values can be called Mapping codes.
Negative return values
SKIP = - 1
This value serves to define that error has occurred but the incorrect record would be skipped and process would continue. Remember that this variable does not need to be declared before it is used. Both
SKIP
and-1
can be used.This return value has the same meaning as setting of
CONTINUE
in the Error actions attribute (which is deprecated since CloverETL 3.0).STOP = - 2
This value serves to define that error has occurred but the processing should be stopped. Remember that this variable does not need to be declared before it is used. Both
STOP
and-2
can be used.This return value has the same meaning as setting of
STOP
in the Error actions attribute (which is deprecated since CloverETL 3.0).Any integer number less than or equal to -1
These values should be defined by user as described below. Their meaning is fatal error. These values can be called Error codes. They can be used for defining Error actions in some components (This attribute along with Error log is deprecated since CloverDX 3.0).