første xml update
[virt-orchestrator.git] / vFLOWER / content / Workflows / uio / lib / tools / add_cpu_memory.workflow.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <workflow xmlns="http://vmware.com/vco/workflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://vmware.com/vco/workflow http://vmware.com/vco/workflow/Workflow-v4.xsd" root-name="item7" object-name="workflow:name=generic" id="fe9631e6-8706-4a86-b8c2-898da0ce747d" version="0.0.5" api-version="3.1.0" allowed-operations="fve" restartMode="1" resumeFromFailedMode="0">
3     <display-name>add_cpu_memory</display-name>
4
5     <position x="100.0" y="50.0"/>
6
7     <input>
8         <param name="vm" type="VC:VirtualMachine">
9             <description>The VM to change</description>
10         </param>
11         <param name="vcpu" type="number">
12             <description>New vCPU number</description>
13         </param>
14         <param name="memory" type="number">
15             <description>New memory value</description>
16         </param>
17         <param name="reboot" type="boolean">
18             <description>Reboot vm</description>
19         </param>
20         <param name="change_params" type="boolean">
21             <description>Change CPU/RAM</description>
22         </param>
23     </input>
24
25     <attrib name="actionResult" type="VC:Task" read-only="false">
26         <value encoded="n">__NULL__</value>
27     </attrib>
28     <attrib name="progress" type="boolean" read-only="false">
29         <value encoded="n">false</value>
30         <description>Log progess while waiting for the task</description>
31     </attrib>
32     <attrib name="pollRate" type="number" read-only="false">
33         <value encoded="n">3.0</value>
34         <description>Polling rate for the task state [seconds]</description>
35     </attrib>
36
37     <workflow-item name="item0" type="end" end-mode="0">
38         <position x="204.5" y="263.59090909090907"/>
39     </workflow-item>
40
41     <workflow-item name="item1" out-name="item3" type="task" script-module="com.vmware.library.vc.vm/changeVMRAM">
42         <display-name>changeVMRAM</display-name>
43
44         <script encoded="false">
45 //Auto generated script, cannot be modified !
46 actionResult = System.getModule("com.vmware.library.vc.vm").changeVMRAM(vm,memory) ;
47         </script>
48
49         <in-binding>
50             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
51                 <description>The VM to change</description>
52             </bind>
53             <bind name="memory" type="number" export-name="memory">
54                 <description>New memory value</description>
55             </bind>
56         </in-binding>
57
58         <out-binding>
59             <bind name="actionResult" type="VC:Task" export-name="actionResult"/>
60         </out-binding>
61
62         <description>Change the VM memory size.</description>
63
64         <position x="524.5" y="182.68181818181816"/>
65     </workflow-item>
66
67     <workflow-item name="item2" out-name="item4" type="task" script-module="com.vmware.library.vc.vm/changeVMvCPU">
68         <display-name>changeVMvCPU</display-name>
69
70         <script encoded="false">
71 //Auto generated script, cannot be modified !
72 actionResult = System.getModule("com.vmware.library.vc.vm").changeVMvCPU(vm,vcpu) ;
73         </script>
74
75         <in-binding>
76             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
77                 <description>The VM to change</description>
78             </bind>
79             <bind name="vcpu" type="number" export-name="vcpu">
80                 <description>New vCPU number</description>
81             </bind>
82         </in-binding>
83
84         <out-binding>
85             <bind name="actionResult" type="VC:Task" export-name="actionResult"/>
86         </out-binding>
87
88         <description>Change the number of vCPUs in the VM.</description>
89
90         <position x="524.5" y="282.68181818181813"/>
91     </workflow-item>
92
93     <workflow-item name="item3" out-name="item2" type="task" script-module="com.vmware.library.vc.basic/vim3WaitTaskEnd">
94         <display-name>vim3WaitTaskEnd</display-name>
95
96         <script encoded="false">
97 //Auto generated script, cannot be modified !
98 actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,progress,pollRate) ;
99         </script>
100
101         <in-binding>
102             <bind name="task" type="VC:Task" export-name="actionResult">
103                 <description>Task to Wait for</description>
104             </bind>
105             <bind name="progress" type="boolean" export-name="progress">
106                 <description>Log progess while waiting for the task</description>
107             </bind>
108             <bind name="pollRate" type="number" export-name="pollRate">
109                 <description>Polling rate for the task state [seconds]</description>
110             </bind>
111         </in-binding>
112
113         <out-binding>
114             <bind name="actionResult" type="Any" explicitly-not-bound="true"/>
115         </out-binding>
116
117         <description>
118 Wait for a VC Task to end.
119 When task ended, return the task result if any.
120         </description>
121
122         <position x="524.5" y="237.22727272727272"/>
123     </workflow-item>
124
125     <workflow-item name="item4" out-name="item8" type="task" script-module="com.vmware.library.vc.basic/vim3WaitTaskEnd">
126         <display-name>vim3WaitTaskEnd</display-name>
127
128         <script encoded="false">
129 //Auto generated script, cannot be modified !
130 actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,progress,pollRate) ;
131         </script>
132
133         <in-binding>
134             <bind name="task" type="VC:Task" export-name="actionResult">
135                 <description>Task to Wait for</description>
136             </bind>
137             <bind name="progress" type="boolean" export-name="progress">
138                 <description>Log progess while waiting for the task</description>
139             </bind>
140             <bind name="pollRate" type="number" export-name="pollRate">
141                 <description>Polling rate for the task state [seconds]</description>
142             </bind>
143         </in-binding>
144
145         <out-binding>
146             <bind name="actionResult" type="VC:Task" export-name="actionResult"/>
147         </out-binding>
148
149         <description>
150 Wait for a VC Task to end.
151 When task ended, return the task result if any.
152         </description>
153
154         <position x="524.5" y="328.1363636363636"/>
155     </workflow-item>
156
157     <workflow-item name="item6" out-name="item0" type="link" linked-workflow-id="BD808080808080808080808080808080CCC280800122528313869552e41805bb1">
158         <display-name>Start virtual machine and wait</display-name>
159
160         <in-binding>
161             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
162                 <description>Virtual machine to start</description>
163             </bind>
164             <bind name="host" type="VC:HostSystem" explicitly-not-bound="true">
165                 <description>[Optional] The host on which to power on the virtual machine. The host must be part of the same compute resource with which the virtual machine is currently associated. Uses the currently associated host if you do not specify a new host or if you specify an incompatible host.</description>
166             </bind>
167         </in-binding>
168
169         <out-binding/>
170
171         <description>Starts a virtual machine and waits for VMware Tools to start.</description>
172
173         <position x="284.5" y="219.04545454545453"/>
174     </workflow-item>
175
176     <workflow-item name="item7" out-name="item9" type="condition" alt-out-name="item5" comparator="0">
177         <display-name>Decision</display-name>
178
179         <script encoded="false">
180 //Generated by the system, cannot be edited
181 return (reboot == true) ;
182         </script>
183
184         <in-binding>
185             <bind name="reboot" type="boolean" export-name="reboot"/>
186         </in-binding>
187         <condition name="reboot" type="boolean" comparator="0" label="null">false</condition>
188
189         <position x="204.5" y="45.40909090909091"/>
190     </workflow-item>
191
192     <workflow-item name="item8" out-name="item6" type="condition" alt-out-name="item0" comparator="0">
193         <display-name>Decision</display-name>
194
195         <script encoded="false">
196 //Generated by the system, cannot be edited
197 return (reboot == true) ;
198         </script>
199
200         <in-binding>
201             <bind name="reboot" type="boolean" export-name="reboot"/>
202         </in-binding>
203         <condition name="reboot" type="boolean" comparator="0" label="null">false</condition>
204
205         <position x="284.5" y="154.5"/>
206     </workflow-item>
207
208     <workflow-item name="item9" out-name="item5" type="link" linked-workflow-id="BD80808080808080808080808080808075C280800122528313869552e41805bb1">
209         <display-name>Shut down guest OS and wait</display-name>
210
211         <in-binding>
212             <bind name="vm" type="VC:VirtualMachine" export-name="vm">
213                 <description>Virtual machine to shut down</description>
214             </bind>
215         </in-binding>
216
217         <out-binding/>
218
219         <description>Shuts down a guest operating system and waits for the process to complete.</description>
220
221         <position x="384.5" y="73.59090909090908"/>
222     </workflow-item>
223
224     <workflow-item name="item5" out-name="item1" type="condition" alt-out-name="item8" comparator="0">
225         <display-name>Decision</display-name>
226
227         <script encoded="false">
228 //Generated by the system, cannot be edited
229 return (change_params == true) ;
230         </script>
231
232         <in-binding>
233             <bind name="change_params" type="boolean" export-name="change_params"/>
234         </in-binding>
235         <condition name="change_params" type="boolean" comparator="0" label="null">false</condition>
236
237         <position x="464.5" y="118.13636363636363"/>
238     </workflow-item>
239
240     <presentation>
241         <p-param name="vm">
242             <desc>The VM to change</desc>
243         </p-param>
244         <p-param name="vcpu">
245             <desc>New vCPU number</desc>
246         </p-param>
247         <p-param name="memory">
248             <desc>New memory value</desc>
249         </p-param>
250         <p-param name="reboot">
251             <desc>reboot</desc>
252         </p-param>
253         <p-param name="change_params">
254             <desc>Change CPU/RAM</desc>
255         </p-param>
256     </presentation>
257 </workflow>