EdgeInstanceEvent e = new EdgeInstanceEvent(this);
e.setToken(token);
e.setEventType(EdgeInstanceEvent.ON_TAKING_THE_TOKEN);
for (int i = 0; this.eventListeners != null && i < this.eventListeners.size(); i++) {
IEdgeInstanceEventListener listener = this.eventListeners.get(i);
listener.onEdgeInstanceEventFired(e); //调用TransitionInstanceExtension 来计算弧线上的条件表达式
}
INodeInstance nodeInst = this.getLeavingNodeInstance(); //获取到流向哪个节点
token.setValue(this.getWeight());//获取到弧线上的权值
boolean alive = token.isAlive();