Pawlowsky, Marc wrote: > Trying to use Groovy some more. > > Using arrays gets blocked. > > <node name="arrayInTest"> > <description>Passing in an array.</description> > <scriptaction name="arrayInTestAction" > language="groovy"> > <description>Passing in an array</description> > <script> > <![CDATA[ > x=[1,2] > wf.getDatabit("test.result_arrayInTest").setValue("arrayInTest"); > ]]> > </script> > </scriptaction> > <edge to="arrayOutTest" event="none"/> > </node> > > Scriptaction: arrayInTestAction contains errors: startup failed, > Script1.groovy: 1: unexpected token: wf @ line 1, column 10. 1 error > > Any recommended fixes?
You forgot the ";" after x=[1,2] Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Computers are useless. They can only give you answers.", Pablo Picasso ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ swamp-devel mailing list swamp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swamp-devel http://swamp.sf.net