1 Star 0 Fork 166

周宗平 / tpflow

forked from 流之云 / tpflow 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

V3.0.1 预览版本

star fork

TpFlow 工作流插件

交流群:532797225

对您有帮助,给我们个Star吧

tpflow 已经走过了一个年头,我们一共发布的2个版本,为数百位开发者提供了方便,同时我们也得到了100多位朋友的支持与赞助。本开源项目将持续开源,不断的完善项目,为更多开发者提供更多的便利。

码云唯一开源的PHP工作流插件,欢迎加入我们,完善插件


新增众多接口,3.0正式版发布在即,欢迎提出更多建议和意见。

markdown

接口示例,以Thinkphp为例

<?php
namespace app\index\Controller;
use app\common\controller\admin;
use workflow\workflow;

class Flowdesign extends Admin {
    public function initialize()
    {
        parent::initialize();
        $this->work = new workflow();
    }
    /**
	 * 流程设计首页
	 */
   public function lists($map = []){
        $this->assign('list',$this->work->FlowApi('List'));
		$this->assign('type', ['news'=>'新闻信息','cnt'=>'合同信息','paper'=>'证件信息']);
        return  $this->fetch();
    }
.......

FlowApi 用法很简单,主要是对Flow工作流的数据封装

详细可以阅读以下API调用方法及示例

参数名称 参数变量 示例/说明
List ~~~ $work->FlowApi('List'); //直接获取到工作流列表数据
AddFlow $work->FlowApi('AddFlow',$data) $data //POST数据
EditFlow $work->FlowApi('EditFlow',$data); $data //POST数据
GetFlowInfo $work->FlowApi('GetFlowInfo',input('id')) $id 为Flow组件

ProcessApi用法很简单,主要是对工作流的步骤进行封装

详细可以阅读以下API调用方法及示例

参数名称 参数变量 示例/说明
All $flow_id 流程主键 $this->work->ProcessApi('All',$flow_id); //获取对应流程所有步骤信息,返回JSON json_encode(['total'=>$process_total,'list'=>$process_data]
ProcessDel $this->work->ProcessApi('ProcessDel',$flow_id,$process_id) $process_id $flow_id 返回Array
ProcessDelAll $this->work->ProcessApi('ProcessDelAll',$flow_id); $flow_id 清空所有步骤
ProcessLink $this->work->ProcessApi('ProcessLink',$flow_id,$process_info) 保存设计
ProcessAttView $this->work->ProcessApi('ProcessAttView',input('id')) 查看步骤设置
ProcessAttSave $this->work->ProcessApi('ProcessAttSave',$data['process_id'],$data) 保存步骤信息

官方博客:http://www.cojz8.com/

官方博客:http://tpflow.cojz8.com/

工作流手册:https://www.kancloud.cn/guowenbin/tpflow

视频教程:http://www.cojz8.com/article/86


The MIT License (MIT) Copyright (c) 2018 逆天的蝈蝈 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于PHP开发的工作流引擎,workflow 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/windzzp/tpflow.git
git@gitee.com:windzzp/tpflow.git
windzzp
tpflow
tpflow
master

搜索帮助