eeb9815fa7fdca30d27572710c831dfe598b4466
[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       }
59     },
60     "node_templates": {
61       "sample-component": {
62         "type": "component-sample-executor",
63         "interfaces": {
64           "ComponentSampleExecutor": {
65             "operations": {
66               "process": {
67                 "inputs": {
68                   "sample-property": "sample-value",
69                   "sample-list-property": [
70                     "json-parser-service"
71                   ],
72                   "dynamic-properties": {
73                     "prop1": "prop1-value",
74                     "prop2": "prop2-value"
75                   }
76                 },
77                 "outputs": {
78                   "response-data": "",
79                   "status": ""
80                 }
81               }
82             }
83           }
84         }
85       }
86     }
87   }
88 }