joinPoint = ((ProcessInstance) tk.getProcessInstance()).createJoinPoint(this, tk);// JoinPoint由谁生成比较好?
int value = joinPoint.getValue();
log.debug("The volume of " + this.toString() + " is " + volume);
log.debug("The value of " + this.toString() + " is " + value);
if (value > volume) {//如果value大于同步器容量,那说明出错了
KernelException exception = new KernelException(tk.getProcessInstance(),
this.getSynchronizer(),
"Error:The token count of the synchronizer-instance can NOT be greater than it's volumn ");
throw exception;
}
if (value < volume) {// 如果Value小于容量则继续等待其他弧的汇聚。 (哪些状态为dead的token到此结束,不再向下传递)