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