Constant Variable in Transform

Hi everyone,

I’d like to know if we can create a constant variable in a transform to be used as input for other operations. I see in docs for Transform Compare Dates that the inputs are a string or object. So, besides attributes as objects, can we add a variable?

I am showing a sample script where the firstDate uses the constant variable created previously. I am doing like 5 date compares and a constant var would be helpful instead of using the same long firstValid operation for each firstDate input.

So if this is not possible, is there another way to avoid using repeatedly operations.

Thanks!

{
"name":"tConstantVariable",
"type":"static",
"attributes":{
  "constantVar":{
      "type":"firstValid",
      "attributes":{
        ....
       }
     },
   "dateOne":{
      "type":"dateCompare",
      "attributes":{
          "firstDate":"$constantVar",
          "secondDate": "now",
          "operator": "gt",
          "positiveCondition": "active",
          "negativeCondition": "inactive"
      }
    }
  }
}

Here is an example

Variable Transform:

{
    "name": "getVariableMailSuffix",
    "type": "static",
    "attributes": {
        "value": "@org.com"
    },
    "internal": false
}

Use of variable transform in another transform:

{
    "name": "getMail",
    "type": "static",
    "attributes": {
        "mailSuffix": {
            "type": "reference",
            "attributes": {
                "id": "getVariableMailSuffix"
            }
        },
        "value": "somevalue$mailSuffix"
    },
    "internal": false
}