Author: camunda
Date: 2010-08-03 08:17:38 -0400 (Tue, 03 Aug 2010)
New Revision: 6541
Modified:
jbpm3/trunk/modules/core/src/main/java/org/jbpm/command/GetTokenCommand.java
Log:
added pre-fetching of process instance data for GetTokenCommand (otherwise it is pretty
unintuitive)
Modified: jbpm3/trunk/modules/core/src/main/java/org/jbpm/command/GetTokenCommand.java
===================================================================
---
jbpm3/trunk/modules/core/src/main/java/org/jbpm/command/GetTokenCommand.java 2010-07-31
03:23:32 UTC (rev 6540)
+++
jbpm3/trunk/modules/core/src/main/java/org/jbpm/command/GetTokenCommand.java 2010-08-03
12:17:38 UTC (rev 6541)
@@ -24,6 +24,8 @@
setJbpmContext(jbpmContext);
Token token = jbpmContext.getToken(tokenId);
retrieveToken(token);
+ // include PI data and maybe process variables as well
+ retrieveProcessInstance(token.getProcessInstance());
return token;
}
Show replies by date