But I didn’t understand exctly how this transforman works correctly.
I’d like to know if the parameter name is actually rule, for example:
“type”: “rule”,
“attributes”: {
“name”: “Generate Random Number”
}
the name “name”: “Generate Random Number”, Is it a reference to a rule ?
So I need this transform (“name”: “Generate Random Number”) to exist in my tenant ?
I created it by looking at the documentation, but it doesn’t work.
{
“id”: “aaafca7e-427f-452c-b054-adee358bc27c”,
“name”: “Gui - Transform Rule”,
“type”: “static”,
“attributes”: {
“rule”: {
“type”: “rule”,
“attributes”: {
“name”: “Generate Random Number”
}
},
“value”: “$rule”
},
“internal”: false
}
@sidharth_tarlapally I don’t think this is accurate. A transform can be referenced using the reference primitive, so it wouldn’t make sense for the rule primitive to also call a different transform. My understanding is that this lets you call a rule, though the documentation on what type of rule (is it a regular cloud rule? what does it need to look like?) is unfortunately sparse.
Like the reference transform, the rule transform allows you to reuse logic that has already been written for a previous use case. However, you can use the rule transform to reuse code contained within a Transform rule that either is not possible through only transforms or is too complex to maintain with Seaspray.
Transform structure
In addition to the standard type and name attributes, the structure of a rule transform requires the name of the rule you want to reference: