 < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " I S O - 8 8 5 9 - 1 "   s t a n d a l o n e = " y e s " ? > 
 < w o r k f l o w   r o o t - n a m e = " i t e m 0 "   o b j e c t - n a m e = " w o r k f l o w : n a m e = g e n e r i c "   i d = " A 2 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 9 A 8 0 8 0 8 0 0 1 3 1 3 6 4 9 2 3 8 7 2 4 7 2 d c f 6 c 5 4 6 6 "     v e r s i o n = " 0 . 0 . 0 "   a p i - v e r s i o n = " 3 . 1 . 0 "   a l l o w e d - o p e r a t i o n s = " v f e "   r e s t a r t M o d e = " 1 "   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ G e t V M C o n f i g ] ] > < / d i s p l a y - n a m e > 
 < p o s i t i o n   x = ' 5 4 0 . 0 '   y = ' 0 . 0 ' / > 
 < a t t r i b   n a m e = ' a l l V M s '   t y p e = ' A r r a y / V C : V i r t u a l M a c h i n e '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' N u m b e r V M s '   t y p e = ' n u m b e r '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ T h e   l e n g t h   o f   t h e   A r r a y   o f   v i r t u a l   m a c h i n e s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' S Q L V I D '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ T h e   S Q L   V I D   w i t h   i s   g e n e r a t e d   a n d   u n i q u e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V m t o G e t '   t y p e = ' V C : V i r t u a l M a c h i n e '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ T h e   v i r t u a l   M a c h i n e   f o r   O p e r a t i o n   i n   t h e   n e x t   s t e p s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' S k i p V M '   t y p e = ' b o o l e a n '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ f a l s e ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ S k i p   t h e   V M ? 	 ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V M N a m e '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ T h e   N a m e   o f   t h e   v i r t u a l   M a c h i n e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V _ I D '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ T h e   V _ I D   f o r   t h e   V M ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' f o l d e r N a m e '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f o l d e r   n a m e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' f o l d e r I d '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f o l d e r   I D ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' r u n n i n g H o s t N a m e '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ N a m e   o f   h o s t   r u n n i n g   t h e   v i r t u a l   m a c h i n e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' r u n n i n g H o s t I d '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ I D   o f   h o s t   r u n n i n g   t h e   v i r t u a l   m a c h i n e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' r e s o u r c e P o o l N a m e '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ R e s o u r c e   p o o l   n a m e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' r e s o u r c e P o o l I d '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ R e s o u r c e   p o o l   I D ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' c l u s t e r N a m e '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ C l u s t e r   n a m e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' c l u s t e r I d '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ C l u s t e r   I D ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' c o m p u t e R e s o u r c e I d '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ C i m p u t e   r e s o u r c e   I D ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' d a t a s t o r e s N a m e '   t y p e = ' A r r a y / s t r i n g '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ D a t a s t o r e   n a m e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' d a t a s t o r e s I d '   t y p e = ' A r r a y / s t r i n g '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ D a t a s t o r e   I D ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' d i s k S i z e s '   t y p e = ' A r r a y / n u m b e r '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ D i s k   s i z e s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' c p u C o u n t '   t y p e = ' n u m b e r '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ N u m b e r   o f   C P U s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' m e m o r y M B '   t y p e = ' n u m b e r '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ M e m o r y   i n   M B ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' i p A d d r e s s e s '   t y p e = ' A r r a y / s t r i n g '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ I P   a d d r e s s e s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' n e t w o r k s '   t y p e = ' A r r a y / s t r i n g '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ N e t w o r k s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' f o l d e r '   t y p e = ' V C : V m F o l d e r '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f o l d e r ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' h o s t '   t y p e = ' V C : H o s t S y s t e m '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ H o s t ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' r e s o u r c e P o o l '   t y p e = ' V C : R e s o u r c e P o o l '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ R e s o u r c e   P o o l ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' c l u s t e r '   t y p e = ' V C : C l u s t e r C o m p u t e R e s o u r c e '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ C l u s t e r ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' c o m p u t e R e s o u r c e '   t y p e = ' V C : C o m p u t e R e s o u r c e '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ C o m p u t e   r e s o u r c e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' d a t a s t o r e s '   t y p e = ' A r r a y / V C : D a t a s t o r e '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ A r r a y   o f   d a t a s t o r e s ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V M U U I D '   t y p e = ' s t r i n g '   r e a d - o n l y = ' f a l s e '   > < d e s c r i p t i o n > < ! [ C D A T A [ U U I D   o f   t h e   v i r t u a l   M a c h i n e ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' i s U n i q u e '   t y p e = ' b o o l e a n '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ t r u e ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ I s   t h e   v a l u e   U n i q u e ?   ( a l w a y s   y e s ) ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V M I n f o _ t a b l e '   t y p e = ' S Q L : T a b l e '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ d u n e s : / / s e r v i c e . d u n e s . c h / C u s t o m S D K O b j e c t ? i d = ' A 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 E 2 8 4 8 0 8 0 0 1 3 1 3 6 4 9 2 3 8 7 2 4 7 2 d c f 6 c 5 4 6 6 @ V M _ I n f o ' & d u n e s N a m e = ' S Q L : T a b l e ' ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ T h e   D b   T a b l e   w i t h   t h e   v i r t u a l   m a c h i n e   i n f o r m a t i o n 	 ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V M I n f o R e a d _ r e s u l t '   t y p e = ' S Q L : A c t i v e R e c o r d '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ _ _ N U L L _ _ ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ T h e   I n f o r m a t i o n   f r o m   t h e   D B   q u e r y   w i l l   b e   s t o r e d   h e r e   ( T a b l e   V M I n f o ) ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < a t t r i b   n a m e = ' V M i n D B '   t y p e = ' b o o l e a n '   r e a d - o n l y = ' f a l s e '   > < v a l u e   e n c o d e d = ' n ' > < ! [ C D A T A [ f a l s e ] ] > < / v a l u e > 
 < d e s c r i p t i o n > < ! [ C D A T A [ I s   t h e   V M   a l r e a d y   i n   t h e   D B ? ] ] > < / d e s c r i p t i o n > 
 < / a t t r i b > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 0 '   o u t - n a m e = ' i t e m 2 '   t y p e = ' t a s k '   s c r i p t - m o d u l e = ' c o m . v m w a r e . l i b r a r y . v c . v m / g e t A l l V M s '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ g e t A l l V M s ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ / / A u t o   g e n e r a t e d   s c r i p t ,   c a n n o t   b e   m o d i f i e d   ! 
 a c t i o n R e s u l t   =   S y s t e m . g e t M o d u l e ( " c o m . v m w a r e . l i b r a r y . v c . v m " ) . g e t A l l V M s ( )   ; ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' a c t i o n R e s u l t '   t y p e = ' A r r a y / V C : V i r t u a l M a c h i n e '   e x p o r t - n a m e = ' a l l V M s '   > < / b i n d > 
 < / o u t - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ R e t u r n   a l l   t h e   v i r t u a l   m a c h i n e s ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 5 0 0 . 0 '   y = ' 8 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 1 '   o u t - n a m e = ' i t e m 3 '   t y p e = ' c u s t o m - c o n d i t i o n '   a l t - o u t - n a m e = ' '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ N u m b e r o f V M s ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ r e t u r n   ( N u m b e r V M s   >   0 ) ; ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' N u m b e r V M s '   t y p e = ' n u m b e r '   e x p o r t - n a m e = ' N u m b e r V M s '   > < / b i n d > 
 < / i n - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ T h i s   D e c i s i o n   w i l l   r e t u r n   t r u e   a s   l o n g   t h e   N u m b e r   o f   V M s   i s   h i g h e r   a s   z e r o ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 5 0 0 . 0 '   y = ' 1 9 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 2 '   o u t - n a m e = ' i t e m 1 '   t y p e = ' t a s k '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ C a l c u l a t e V M N u m b e r ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ N u m b e r V M s   =   a l l V M s . l e n g t h ; 
 ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' a l l V M s '   t y p e = ' A r r a y / V C : V i r t u a l M a c h i n e '   e x p o r t - n a m e = ' a l l V M s '   > < / b i n d > 
 < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' N u m b e r V M s '   t y p e = ' n u m b e r '   e x p o r t - n a m e = ' N u m b e r V M s '   > < / b i n d > 
 < / o u t - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ T h i s   S c r i p t a b l e   T a s k   c a l c u l a t e s   t h e   N u m b e r   o f   t h e   V M s   i n   t h e   v C e n t e r   S e r v e r ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 5 0 0 . 0 '   y = ' 1 4 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 3 '   o u t - n a m e = ' i t e m 4 '   t y p e = ' t a s k '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ C o u n t d o w n   V M s ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ / /   s e t   V a r i a b l e   S k i p V M   t o   f a l s e 
 S k i p V M   = =   f a l s e ; 
 
 / /   W e   t a k e   t h e   l a s t   V M   i n   o u r   A r r a y   
 V m t o G e t   =   a l l V M s . p o p ( ) ; 
 
 / /   s o m e   v i r t u a l   m a c h i n e s   a r e   i n   t h e   A P I   b u t   n o t   c o n n e c t e d .   W e   m u s t   e x e c l u d e   t h e m ,   o t h e r w i s e   w e   b e c o m e   e r r o r s 
 i f   ( V m t o G e t . s u m m a r y . r u n t i m e . c o n n e c t i o n S t a t e   = =   V c V i r t u a l M a c h i n e C o n n e c t i o n S t a t e . o r p h a n e d )   { 
 S k i p V M   =   t r u e ; 
 S y s t e m . d e b u g ( " O r p h a n e d V M :   "   +   V m t o G e t ) ; 
 } 
 i f   ( V m t o G e t . s u m m a r y . c o n f i g . t e m p l a t e   = =   t r u e )   { 
 S k i p V M   =   t r u e ; 
 S y s t e m . d e b u g ( " T e m p l a t e :   "   +   V m t o G e t ) ; 
 } 
 i f   ( V m t o G e t . s u m m a r y . r u n t i m e . c o n n e c t i o n S t a t e   = =   V c V i r t u a l M a c h i n e C o n n e c t i o n S t a t e . d i s c o n n e c t e d )   { 
 S k i p V M   =   t r u e ; 
 S y s t e m . d e b u g ( " V M   D i s c o n n e c t e d :   "   +   V m t o G e t ) ; 
 } 
 i f   ( V m t o G e t . s u m m a r y . r u n t i m e . c o n n e c t i o n S t a t e   = =   V c V i r t u a l M a c h i n e C o n n e c t i o n S t a t e . i n a c c e s s i b l e )   { 
 S k i p V M   =   t r u e ; 
 S y s t e m . d e b u g ( " V M   I n a c c e s s i b l e :   "   +   V m t o G e t ) ; 
 } 
 / /   G e t   t h e   v i r t u a l   m a c h i n e   n a m e 
 V M N a m e   =   V m t o G e t . s u m m a r y . c o n f i g . n a m e ; 
 
 / /   c r e a t e   a   u n i q u e   U U I D   f o r   t h e   d a t a b a s e   ( I t   i s   a l s o   p o s s i b l e   t o   d o   s o   i n   t h e   S Q L   D B . . . . h e r e   I   u s e   t h e   j a v a s c r i p t   ) 
 V _ I D   =   S y s t e m . n e x t U U I D ( ) ; 
 
 / /   d e c r e s e   t h e   V a r i a b l e   N u m b e r V M s 
 N u m b e r V M s   =   N u m b e r V M s   - 1 ; ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' N u m b e r V M s '   t y p e = ' n u m b e r '   e x p o r t - n a m e = ' N u m b e r V M s '   > < / b i n d > 
 < b i n d   n a m e = ' a l l V M s '   t y p e = ' A r r a y / V C : V i r t u a l M a c h i n e '   e x p o r t - n a m e = ' a l l V M s '   > < / b i n d > 
 < b i n d   n a m e = ' S Q L V I D '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' S Q L V I D '   > < / b i n d > 
 < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' N u m b e r V M s '   t y p e = ' n u m b e r '   e x p o r t - n a m e = ' N u m b e r V M s '   > < / b i n d > 
 < b i n d   n a m e = ' V m t o G e t '   t y p e = ' V C : V i r t u a l M a c h i n e '   e x p o r t - n a m e = ' V m t o G e t '   > < / b i n d > 
 < b i n d   n a m e = ' S k i p V M '   t y p e = ' b o o l e a n '   e x p o r t - n a m e = ' S k i p V M '   > < / b i n d > 
 < b i n d   n a m e = ' V M N a m e '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' V M N a m e '   > < / b i n d > 
 < b i n d   n a m e = ' V _ I D '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' V _ I D '   > < / b i n d > 
 < / o u t - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ C o u n t d o w n   o u r   V M s   i n   t h e   A r r a y ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 4 0 0 . 0 '   y = ' 2 6 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 4 '   o u t - n a m e = ' i t e m 8 '   t y p e = ' c o n d i t i o n '   a l t - o u t - n a m e = ' i t e m 1 '   c o m p a r a t o r = ' 0 '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ S k i p   V M ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ / / G e n e r a t e d   b y   t h e   s y s t e m ,   c a n n o t   b e   e d i t e d 
 r e t u r n   ( S k i p V M   = =   f a l s e )   ; ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' S k i p V M '   t y p e = ' b o o l e a n '   e x p o r t - n a m e = ' S k i p V M '   > < / b i n d > 
 < / i n - b i n d i n g > < c o n d i t i o n   n a m e = ' S k i p V M '   t y p e = ' b o o l e a n '   c o m p a r a t o r = ' 1 ' > < ! [ C D A T A [ f a l s e ] ] > < / c o n d i t i o n > 
 < d e s c r i p t i o n > < ! [ C D A T A [ S k i p   t h e   v i r t u a l   m a c h i n e ? ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 4 0 0 . 0 '   y = ' 3 1 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 5 '   o u t - n a m e = ' i t e m 7 '   t y p e = ' t a s k '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ G e t V M U U I D ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ V M U U I D   =   V m t o G e t . s u m m a r y . c o n f i g . u u i d ; ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' V m t o G e t '   t y p e = ' V C : V i r t u a l M a c h i n e '   e x p o r t - n a m e = ' V m t o G e t '   > < / b i n d > 
 < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' V M U U I D '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' V M U U I D '   > < / b i n d > 
 < / o u t - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ G e t   t h e   U U I D   f r o m   t h e   V M ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 4 0 0 . 0 '   y = ' 4 4 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 6 '   o u t - n a m e = ' '   t y p e = ' c o n d i t i o n '   a l t - o u t - n a m e = ' i t e m 1 '   c o m p a r a t o r = ' 0 '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ V M   i n   D B ] ] > < / d i s p l a y - n a m e > 
 < i n - b i n d i n g > < / i n - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ I s   t h e   V M   a l r e a d y   i n   t h e   D a t a b a s e ? ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 4 0 0 . 0 '   y = ' 5 5 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 7 '   o u t - n a m e = ' i t e m 6 '   t y p e = ' t a s k '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ G e t V M f r o m D B ] ] > < / d i s p l a y - n a m e > 
 < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ / /   W e   c h e c k   t h e   D B   f o r   t h e   V M .   T h e   c h e c k   i s   b a s e d   o n   V M N a m e   a n d   U U I D 
 
 v a r   c o l u m n s   =   { 
 	 V M U U I D   :   V M U U I D , 
 	 V M N a m e   :   V M N a m e , 
 
 } ; 
 V M I n f o R e a d _ r e s u l t   =   V M I n f o _ t a b l e . r e a d R e c o r d s ( c o l u m n s ) ; 
 
 / /   S o m e   l o c a l   v a r i a b l e s   h e r e .   W e   h a v e   t o   s p l i t   t h e   D B   I n f o r m a t i o n 
 v a r   S p l i t A r r a y t o S t r i n g   =   V M I n f o R e a d _ r e s u l t . t o S t r i n g ( ) ; 
 v a r   U U I D S t r i n g   =   S p l i t A r r a y t o S t r i n g . s e a r c h ( V M U U I D ) ; 
 v a r   V M N a m e S t r i n g   =   S p l i t A r r a y t o S t r i n g . s e a r c h ( V M N a m e ) ; 
 
 i f   ( ( U U I D S t r i n g   > =   0 )   & &   ( V M N a m e S t r i n g   > = 0 ) ) 
 { 
 V M i D B   =   t r u e ; 
 S y s t e m . l o g ( " V M :   "   +   V M N a m e   +   "   a l r e a d y   i n   D B . " ) 
 } 
 e l s e 
 { 
 V M i D B   =   f a l s e ; 
 S y s t e m . l o g ( " V M :   "   +   V M N a m e   +   "   n o t   i n   D B . " ) 
 } ; ] ] > < / s c r i p t > 
 < i n - b i n d i n g > < b i n d   n a m e = ' i s U n i q u e '   t y p e = ' b o o l e a n '   e x p o r t - n a m e = ' i s U n i q u e '   > < / b i n d > 
 < b i n d   n a m e = ' V M U U I D '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' V M U U I D '   > < / b i n d > 
 < b i n d   n a m e = ' V _ I D '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' V _ I D '   > < / b i n d > 
 < b i n d   n a m e = ' V M I n f o _ t a b l e '   t y p e = ' S Q L : T a b l e '   e x p o r t - n a m e = ' V M I n f o _ t a b l e '   > < / b i n d > 
 < b i n d   n a m e = ' V M N a m e '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' V M N a m e '   > < / b i n d > 
 < b i n d   n a m e = ' V M I n f o R e a d _ r e s u l t '   t y p e = ' S Q L : A c t i v e R e c o r d '   e x p o r t - n a m e = ' V M I n f o R e a d _ r e s u l t '   > < / b i n d > 
 < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' V M i n D B '   t y p e = ' b o o l e a n '   e x p o r t - n a m e = ' V M i n D B '   > < / b i n d > 
 < / o u t - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ G e t   t h e   v i r t u a l   m a c h i n e   f r o m   D B   w h e n   t h e   v i r t u a l   m a c h i n e   a l r e a d y   e x i s t s . ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 4 0 0 . 0 '   y = ' 4 8 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < w o r k f l o w - i t e m   n a m e = ' i t e m 8 '   o u t - n a m e = ' i t e m 5 '   t y p e = ' l i n k '   l i n k e d - w o r k f l o w - i d = ' B D 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 9 9 C 3 8 0 8 0 0 1 2 2 5 2 8 3 1 3 8 6 9 5 5 2 e 4 1 8 0 5 b b 1 '   > 
 < d i s p l a y - n a m e > < ! [ C D A T A [ E x t r a c t   v i r t u a l   m a c h i n e   i n f o r m a t i o n ] ] > < / d i s p l a y - n a m e > 
 < i n - b i n d i n g > < b i n d   n a m e = ' v m '   t y p e = ' V C : V i r t u a l M a c h i n e '   e x p o r t - n a m e = ' V m t o G e t '   > < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f r o m   w h i c h   t o   e x t r a c t   i n f o r m a t i o n ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < / i n - b i n d i n g > < o u t - b i n d i n g > < b i n d   n a m e = ' f o l d e r N a m e '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' f o l d e r N a m e '   > < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f o l d e r   n a m e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' f o l d e r I d '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' f o l d e r I d '   > < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f o l d e r   I D ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' r u n n i n g H o s t N a m e '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' r u n n i n g H o s t N a m e '   > < d e s c r i p t i o n > < ! [ C D A T A [ N a m e   o f   h o s t   r u n n i n g   t h e   v i r t u a l   m a c h i n e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' r u n n i n g H o s t I d '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' r u n n i n g H o s t I d '   > < d e s c r i p t i o n > < ! [ C D A T A [ I D   o f   h o s t   r u n n i n g   t h e   v i r t u a l   m a c h i n e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' r e s o u r c e P o o l N a m e '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' r e s o u r c e P o o l N a m e '   > < d e s c r i p t i o n > < ! [ C D A T A [ R e s o u r c e   p o o l   n a m e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' r e s o u r c e P o o l I d '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' r e s o u r c e P o o l I d '   > < d e s c r i p t i o n > < ! [ C D A T A [ R e s o u r c e   p o o l   I D ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' c l u s t e r N a m e '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' c l u s t e r N a m e '   > < d e s c r i p t i o n > < ! [ C D A T A [ C l u s t e r   n a m e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' c l u s t e r I d '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' c l u s t e r I d '   > < d e s c r i p t i o n > < ! [ C D A T A [ C l u s t e r   I D ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' c o m p u t e R e s o u r c e I d '   t y p e = ' s t r i n g '   e x p o r t - n a m e = ' c o m p u t e R e s o u r c e I d '   > < d e s c r i p t i o n > < ! [ C D A T A [ C i m p u t e   r e s o u r c e   I D ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' d a t a s t o r e s N a m e '   t y p e = ' A r r a y / s t r i n g '   e x p o r t - n a m e = ' d a t a s t o r e s N a m e '   > < d e s c r i p t i o n > < ! [ C D A T A [ D a t a s t o r e   n a m e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' d a t a s t o r e s I d '   t y p e = ' A r r a y / s t r i n g '   e x p o r t - n a m e = ' d a t a s t o r e s I d '   > < d e s c r i p t i o n > < ! [ C D A T A [ D a t a s t o r e   I D ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' d i s k S i z e s '   t y p e = ' A r r a y / n u m b e r '   e x p o r t - n a m e = ' d i s k S i z e s '   > < d e s c r i p t i o n > < ! [ C D A T A [ D i s k   s i z e s ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' c p u C o u n t '   t y p e = ' n u m b e r '   e x p o r t - n a m e = ' c p u C o u n t '   > < d e s c r i p t i o n > < ! [ C D A T A [ N u m b e r   o f   C P U s ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' m e m o r y M B '   t y p e = ' n u m b e r '   e x p o r t - n a m e = ' m e m o r y M B '   > < d e s c r i p t i o n > < ! [ C D A T A [ M e m o r y   i n   M B ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' i p A d d r e s s e s '   t y p e = ' A r r a y / s t r i n g '   e x p o r t - n a m e = ' i p A d d r e s s e s '   > < d e s c r i p t i o n > < ! [ C D A T A [ I P   a d d r e s s e s ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' n e t w o r k s '   t y p e = ' A r r a y / s t r i n g '   e x p o r t - n a m e = ' n e t w o r k s '   > < d e s c r i p t i o n > < ! [ C D A T A [ N e t w o r k s ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' f o l d e r '   t y p e = ' V C : V m F o l d e r '   e x p o r t - n a m e = ' f o l d e r '   > < d e s c r i p t i o n > < ! [ C D A T A [ V i r t u a l   m a c h i n e   f o l d e r ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' h o s t '   t y p e = ' V C : H o s t S y s t e m '   e x p o r t - n a m e = ' h o s t '   > < d e s c r i p t i o n > < ! [ C D A T A [ H o s t ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' r e s o u r c e P o o l '   t y p e = ' V C : R e s o u r c e P o o l '   e x p o r t - n a m e = ' r e s o u r c e P o o l '   > < d e s c r i p t i o n > < ! [ C D A T A [ R e s o u r c e   P o o l ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' c l u s t e r '   t y p e = ' V C : C l u s t e r C o m p u t e R e s o u r c e '   e x p o r t - n a m e = ' c l u s t e r '   > < d e s c r i p t i o n > < ! [ C D A T A [ C l u s t e r ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' c o m p u t e R e s o u r c e '   t y p e = ' V C : C o m p u t e R e s o u r c e '   e x p o r t - n a m e = ' c o m p u t e R e s o u r c e '   > < d e s c r i p t i o n > < ! [ C D A T A [ C o m p u t e   r e s o u r c e ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < b i n d   n a m e = ' d a t a s t o r e s '   t y p e = ' A r r a y / V C : D a t a s t o r e '   e x p o r t - n a m e = ' d a t a s t o r e s '   > < d e s c r i p t i o n > < ! [ C D A T A [ A r r a y   o f   d a t a s t o r e s ] ] > < / d e s c r i p t i o n > 
 < / b i n d > 
 < / o u t - b i n d i n g > < d e s c r i p t i o n > < ! [ C D A T A [ R e t u r n s   t h e   v i r t u a l   m a c h i n e   f o l d e r ,   h o s t   s y s t e m ,   r e s o u r c e   p o o l ,   c o m p u t e   r e s o u r c e ,   d a t a s t o r e ,   h a r d   d r i v e s   s i z e s ,   C P U   a n d   m e m o r y ,   n e t w o r k ,   a n d   I P   a d d r e s s   f o r   a   g i v e n   v i r t u a l   m a c h i n e .   N o t e :   V M w a r e   T o o l s   m a y   n e e d   t o   b e   i n s t a l l e d . ] ] > < / d e s c r i p t i o n > 
 < p o s i t i o n   x = ' 4 0 0 . 0 '   y = ' 3 8 0 . 0 ' / > 
 < / w o r k f l o w - i t e m > 
 < p r e s e n t a t i o n > 
 < / p r e s e n t a t i o n > < / w o r k f l o w >