Always return the configured value, whatever the input. Inside a MappingTransformer, the
constant property option usually does the same job; this transformer is useful elsewhere (e.g. in a
TransformerTask or in a transformer chain).
- Service:
CleverAge\ProcessBundle\Transformer\ConstantTransformer - Transformer code:
constant
any: the input is ignored.
any: the configured constant.
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
constant |
any |
X | The value to return |
# Transformer options level
constant:
constant: default_value