thx very much. i can using the processState successfully.
now, i want to ask another question.
the question is about jbpm's persistence.
i wonder if i Can we use jbpm without jbpm' persistence.
i means i dont want to save the processdefinition and processinstance into db, just creat, run and save it on the memory?
Almost all of the examples that come with the jbpm distribution do exactly this, take a look at those. Under src/java.examples after you unpack the jbpm distribution.