This page last changed on Feb 01, 2014 by pjmm.

I am looking for an example of a rule to split a read string into multiple outputs.

I can control the format of the returned string it could have the following format


each one of these values I would like to split and use separately

Any help would be appreciated

Not tested from top of my head, so beware of typos. It should give you an idea:

rule "split"
  java.util.StringTokenizer st = new StringTokenizer($val.toString(), ",");
  while (st.hasMoreElements()) {
    String cmd = (String) st.nextElement();
    // do something with cmd
Posted by aktur at Feb 03, 2014 09:17
Document generated by Confluence on Jun 05, 2016 09:36