package com.artfess.bpm.persistence.manager;

import com.artfess.base.manager.BaseManager;
import com.artfess.bpm.api.model.delegate.BpmDelegateTask;
import com.artfess.bpm.persistence.model.BpmAgentCondition;

import java.util.List;

public interface BpmAgentConditionManager extends BaseManager<BpmAgentCondition>{

	/**
	 * 检查条件代理设置的条件，如果通过返回true，不通过返回false
	 * @param delegateTask 
	 * @param con
	 * @param busData
	 * @param vars
	 * @return
	 */
	boolean checkCondition(BpmDelegateTask delegateTask, BpmAgentCondition con);

	void removeBySettingId(String pk);

	List<BpmAgentCondition> getBySettingId(String id);
	
}
