Skip to main content

I’m at a loss here. 

I was under the impression that the workflow engine uses Groovy to interpret any java code you enter but some operators fail the syntax check.

 

For example if I attempt to create a list using groovy syntax.

def clientlist = t];

 

this will cause a syntax error stating that “h“ is unexpected.

Fine I can work around that by doing 

def clientlist = xpath:{/workflow/select/clients}

 

Where the xpath points to a list, but it will not allow me to do something such as 

clientlist.each{

random stuff

more random stuff

additional random stuff

}

 

I don’t mind using Javascript but some things are easier in Java and I kind of assumed that I could just follow Groovy syntax to make sure stuff worked. 

What am I missing?

 

Good afternoon.  As Groovy syntax is not always backward compatible to Java syntax in some cases, we recommend using Java syntax.  Please let me know if you have any questions.

 


Thanks. I will keep that in mind.