aboutsummaryrefslogtreecommitdiffstats
path: root/docs/modelingconcepts/expression.rst
diff options
context:
space:
mode:
authorJakobKrieg <jakob.krieg@bcmsolutions.de>2020-08-04 20:46:50 +0200
committerJakobKrieg <jakob.krieg@bcmsolutions.de>2020-08-04 20:46:59 +0200
commit7c3f39504a14c056d860e09ece970ccde349053f (patch)
tree47817becf6b1a3e481dfd6230c4f15d4f719bd2a /docs/modelingconcepts/expression.rst
parent4a01363c4634a62946d6f2befe00cbf2d9872d90 (diff)
Adding Modeling Concepts documentation from COnfluence to RDT
Issue-ID: CCSDK-2615 Change-Id: Ib5dfaecc96e8fac1dda07aa6c13aba5ded81efee Signed-off-by: JakobKrieg <jakob.krieg@bcmsolutions.de>
Diffstat (limited to 'docs/modelingconcepts/expression.rst')
-rw-r--r--docs/modelingconcepts/expression.rst101
1 files changed, 101 insertions, 0 deletions
diff --git a/docs/modelingconcepts/expression.rst b/docs/modelingconcepts/expression.rst
new file mode 100644
index 000000000..639f700ef
--- /dev/null
+++ b/docs/modelingconcepts/expression.rst
@@ -0,0 +1,101 @@
+.. This work is a derivative of https://wiki.onap.org/display/DW/Modeling+Concepts#Concepts-198012600 by IBM
+.. used under Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. Copyright (C) 2020 Deutsche Telekom AG.
+
+
+.. _expression:
+
+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**
+
+.. tabs::
+
+ .. tab:: get_input
+
+ **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
+ <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454178>`_
+
+ **Example:**
+
+ `<https://github.com/onap/ccsdk-cds/blob/master/components/model-catalog/blueprint-model/test-blueprint/golden/Definitions/golden-blueprint.json#L210>`_
+
+ .. code-block:: JSON
+
+ "resolution-key": {
+ "get_input": "resolution-key"
+ }
+
+ .. tab:: get_property
+
+ **get_property**
+
+ The **get_property** function is used to retrieve property values between modelable
+ entities defined in the same service template.
+
+ `TOSCA specification
+ <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454178>`_
+
+ **Example:**
+
+ TBD
+
+ .. tab:: get_attribute
+
+ **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
+ <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454178>`_
+
+ **Example:**
+
+ `<https://github.com/onap/ccsdk-cds/blob/master/components/model-catalog/blueprint-model/test-blueprint/golden/Definitions/golden-blueprint.json#L64-L67>`_
+
+ .. code-block:: JSON
+
+ "get_attribute": [
+ "resource-assignment",
+ "assignment-params"
+ ]
+
+ .. tab:: get_operation_output
+
+ **get_operation_output**
+
+ The **get_operation_output** function is used to retrieve property values between modelable
+ entities defined in the same service template.
+
+ `TOSCA specification
+ <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454180>`_
+
+ **Example:**
+
+ TBD
+
+ .. tab:: get_artifact
+
+ **get_artifact**
+
+ The **get_artifact** function is used to retrieve property values between modelable
+ entities defined in the same service template.
+
+ `TOSCA specification
+ <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454182>`_
+
+ **Example:**
+
+ TBD \ No newline at end of file