I have certain question about Token.
1. What is a token?
2. Do we get a separate token for each node or just one toke for the entire process definition?
3. If I am programmatically creating multiple instances of a Task can I have same set of variables but different values for all of them and also can I have then persist in database?
Thanks
1: http://docs.jboss.org/jbpm/v3/javadoc/org/jbpm/graph/exe/Token.html
2: According to 1, you get one for each path of execution. So in a fork you get one for each 'leg' of the fork and a parent one stays in the fork
3: Yes