1 Reply Latest reply on May 14, 2008 8:09 AM by ajanz

    get variables from executionccontext

    ajanz

      hello,

      i want to write a generic actionhandler which reads all variables from executioncontext and write them in some message.

      how can i get the variable names from executioncontext if i don't know them?

      i want to use this actionhandler in every workflow, so i don't know the variablenames.

        • 1. Re: get variables from executionccontext
          ajanz

          should work like this


           Iterator it = ctx.getTaskInstance().getVariables().keySet().iterator();
           while ( it.hasNext()){
           // key ermitteln
           String key = (String) it.next();
           // wert ermitteln
           String val = (String) ctx.getTaskInstance().getVariable(key);