﻿/*
* Slickflow 工作流引擎遵循LGPL协议，也可联系作者商业授权并获取技术支持；
* 除此之外的使用则视为不正当使用，请您务必避免由此带来的商业版权纠纷。
* 
The Slickflow project.
Copyright (C) 2014  .NET Workflow Engine Library

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, you can access the official
web page about lgpl: https://www.gnu.org/licenses/lgpl.html
*/

namespace Slickflow.Data
{
    /// <summary>
    /// 流程数据SQL接口
    /// </summary>
    public interface IWfDataProvider
    {
        /// <summary>
        /// 获取任务分页数据
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        string GetSqlTaskPaged(string sql);

        /// <summary>
        /// 获取我的任务数据
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        string GetSqlTaskOfMineByAtcitivityInstance(string sql);

        /// <summary>
        /// 获取我的任务数据
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        string GetSqlTaskOfMineByAppInstance(string sql);
    }
}
