snaker-core/src/main/java/org/snaker/engine/core/OrderService.java
public void complete(String orderId) {
		Order order = access().getOrder(orderId);
		HistoryOrder history = access().getHistOrder(orderId);
		history.setOrderState(STATE_FINISH);
		history.setEndTime(DateHelper.getTime());
		
		access().updateHistory(history);
		access().deleteOrder(order);
        Completion completion = getCompletion();
        if(completion != null) {
            completion.complete(history);
        }
	}
public void complete(String orderId) {
		Order order = access().getOrder(orderId);
		HistoryOrder history = access().getHistOrder(orderId);
		history.setOrderState(STATE_FINISH);
		history.setEndTime(DateHelper.getTime());
		
		access().updateHistory(history);
		access().deleteOrder(order);
        Completion completion = getCompletion();
        if(completion != null) {
            completion.complete(history);
        }
	}
public void complete ( String orderId ) { Order order = access ( ) . getOrder ( orderId ) ; HistoryOrder history = access ( ) . getHistOrder ( orderId ) ; history . setOrderState ( STATE_FINISH ) ; history . setEndTime ( DateHelper . getTime ( ) ) ; access ( ) . updateHistory ( history ) ; access ( ) . deleteOrder ( order ) ; Completion completion = getCompletion ( ) ; if ( completion != null ) { completion . complete ( history ) ; } }
删除活动流程实例数据，更新历史流程实例的状态、结束时间
删除活动流程实例数据，更新历史流程实例的状态、结束时间