9e040b85de170694922e748e52ba0a0c1179cfd1
[ccsdk/cds.git] /
1 {
2   "tosca_definitions_version": "controller_blueprint_1_0_0",
3   "metadata": {
4     "template_author": "Brinda Santh <brindasanth@in.ibm.com>",
5     "template_name": "component_invoke",
6     "template_version": "1.0.0",
7     "template_tags": "brinda, component_invoke"
8   },
9   "imports": [
10     {
11       "file": "Definitions/data_types.json"
12     },
13     {
14       "file": "Definitions/relationship_types.json"
15     },
16     {
17       "file": "Definitions/artifact_types.json"
18     },
19     {
20       "file": "Definitions/node_types.json"
21     },
22     {
23       "file": "Definitions/policy_types.json"
24     }
25   ],
26   "topology_template": {
27     "workflows": {
28       "component-invoke": {
29         "steps": {
30           "activate-process": {
31             "description": "Sample Component Invocation flow",
32             "target": "sample-component",
33             "activities": [
34               {
35                 "call_operation": "sample-component"
36               }
37             ]
38           }
39         },
40         "inputs": {
41           "request-id": {
42             "required": true,
43             "type": "string"
44           },
45           "action-name": {
46             "required": true,
47             "type": "string"
48           },
49           "scope-type": {
50             "required": true,
51             "type": "string"
52           },
53           "hostname": {
54             "required": true,
55             "type": "string"
56           }
57         },
58         "outputs": {
59           "response-property1": {
60             "type": "string",
61             "value": "executed"
62           },
63           "response-property2": {
64             "type": "string",
65             "value": {
66               "get_input": "action-name"
67             }
68           }
69         }
70       }
71     },
72     "node_templates": {
73       "sample-component": {
74         "type": "component-sample-executor",
75         "interfaces": {
76           "ComponentSampleExecutor": {
77             "operations": {
78               "process": {
79                 "inputs": {
80                   "sample-property": "sample-value",
81                   "sample-list-property": [
82                     "json-parser-service"
83                   ],
84                   "dynamic-properties": {
85                     "prop1": "prop1-value",
86                     "prop2": "prop2-value"
87                   }
88                 },
89                 "outputs": {
90                   "response-data": "",
91                   "status": ""
92                 }
93               }
94             }
95           }
96         }
97       }
98     }
99   }
100 }