Hi all,
just wondering... if Fork explicitly needs to save childTokens can I then assume that saving the parent token or processInstance will NOT do so?
This would be a real bummer... :-(
Greetings
Rainer
public class Fork extends Node implements Parsable {
...
protected ForkedToken createForkedToken(Token parent, String transitionName) {
// instantiate the new token
Token childToken = new Token(parent, getTokenName(parent, transitionName));
// if there is persistency
JbpmSession jbpmSession = JbpmSession.getCurrentJbpmSession();
if (jbpmSession!=null) {
// give the childToken an id
jbpmSession.getSession().save(childToken);
}
// create a forked token
ForkedToken forkedToken = null;
forkedToken = new ForkedToken(childToken, transitionName);
return forkedToken;
}
...