}
}
ITransitionInstance theLeavingTransitionInstance = (ITransitionInstance) fromActivityInstance
.getLeavingTransitionInstances().get(0);
ISynchronizerInstance synchronizerInstance = (ISynchronizerInstance) theLeavingTransitionInstance
.getLeavingNodeInstance();
if (synchronizerInstance.getEnteringTransitionInstances().size() > fromActivityIdList
.size()) {
Token supplementToken = new Token();
((Token) supplementToken).setAlive(false);
((Token) supplementToken).setNodeId(synchronizerInstance
.getSynchronizer().getId());
supplementToken.setProcessInstanceId(thisTaskInstance
.getProcessInstanceId());
supplementToken
.setProcessInstance(((TaskInstance) thisTaskInstance)
.getAliveProcessInstance());
supplementToken.setFromActivityId("EMPTY(created by reject)");
supplementToken
.setStepNumber(thisTaskInstance.getStepNumber() + 1);
supplementToken.setValue(synchronizerInstance.getVolume()
- theLeavingTransitionInstance.getWeight()
* fromActivityIdList.size());
persistenceService.saveOrUpdateToken(supplementToken);
}
} finally {