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