2 Replies Latest reply on Feb 26, 2009 9:20 AM by Ronald van Kuijk

    How gettting the process definition's token list ?

    Sara Rodríguez Dorrego Novice

      Hello!!

      I'm wondering how I could get the process definition's token list. I was looking into the api but I don't know how do this. I would like rescue a token list of an instance. Rescue all tokens. I implemented the next code, but it returns only the first token, not all tokens. Any ideas?? Thanks

       ProcessInstance inst=jbpmContext.getProcessInstance(16);
       List findAllTokens = inst.findAllTokens();
       for (int i = 0; i < findAllTokens.size(); i++) {
       Token token=(Token)findAllTokens.get(i);
       System.out.println("-->>"+token.getFullName());
       }