Expression
TOSCA provides for a set of functions to reference elements within the template or to retrieve runtime values.
Below is a list of supported expressions
get_input
The get_input function is used to retrieve the values of properties declared within the inputs section of a TOSCA Service Template.
Within CDS, this is mainly Workflow inputs.
TOSCA specification - get_input
Example:
"resolution-key": {
"get_input": "resolution-key"
}
get_property
The get_property function is used to retrieve property values between modelable entities defined in the same service template.
Example:
"get_property": ["SELF", "property-name"]
get_attribute
The get_attribute function is used to retrieve the values of named attributes declared by the referenced node or relationship template name.
TOSCA specification - get_attribute
Example:
"get_attribute": [
"resource-assignment",
"assignment-params"
]
get_operation_output
The get_operation_output function is used to retrieve the values of variables exposed / exported from an interface operation.
TOSCA specification - get_operation_output
Example:
"get_operation_output": ["SELF", "interface-name", "operation-name", "output-property-name"]
get_artifact
The get_artifact function is used to retrieve artifact location between modelable entities defined in the same service template.
TOSCA specification - get_artifact
Example:
"get_artifact" : ["SELF", "artifact-template", "location", true]