blackholll / loonflow Goto Github PK
View Code? Open in Web Editor NEW基于django的工作流引擎,工单(a workflow engine base on django python)
License: MIT License
基于django的工作流引擎,工单(a workflow engine base on django python)
License: MIT License
WARNINGS:
?: (urls.W002) Your URL pattern '/int:ticket_id' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/accept' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/add_node' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/add_node_end' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/comments' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/deliver' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/fields' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/flowlogs' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/flowsteps' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/retry_script' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/state' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:ticket_id/transitions' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:workflow_id/init_state' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/int:workflow_id/states' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/states' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
?: (urls.W002) Your URL pattern '/states/int:state_id' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
用model_utils的SoftDeletableModel,比每次查询都带上is_deleted好,兴许哪天忘记加了,就有bug了。
是否考虑增加一个上传功能,比如我需要上传一个log文件, 到当前处理人后,可以点击下载之后,下载到本地
Line 43 in a10b9a8
data为空的时候应该赋值为空字典,而不是空字符串。
before new issue, you may need a search
如果不填写任何字段,在调用工单详情接口,返回的field_list什么信息都没有。
如果填写其中一个自定义字段,则返回所有的字段信息。
我改了工单model的save,在post_save里面监听工单,发邮件给participant字段的人,发现邮件会发2遍,是不是save会做2遍?save2次才能完成一个工单的update
比如一个业务接待费的审批。
1、费用money <=2000时,由行政部主任审批。
2、 money>2000时,有分管厂长审批。
比如总部时组织结构的根节点,下级部门A,还有子部门A1/A2,形如:
总部
部门A
部门A1
部门A11
部门A2
部门A21
有员工张三,隶属A11,那teamleader是哪个?是A11还是A1?
如果我设置A1有leader,A11没有leader可以么?是否此时,张三发起的审批teamleader就是A1的leader?
请问这个redis是给celery用的嘛,可以换mysql嘛
sn 支持配置前缀
报错信息:
DataTables warning: table id=dept_table - Requested unknown parameter 'creator_info' for row 0, column 6. For more information about this error, please see http://datatables.net/tn/4
当工单到工作组,组内所有成员都可以看到,A接单了,待处理人就是A,B接单了,待处理人就是B,那么后台进行设计的时候,这个字段是选个人还是变量?接单人的变量是什么?
当节点流转的时候,如何通知三方调用系统,是在‘通知脚本’里写调用三方系统接口的代码, 然后三方系统收到调用后,再主动调loonflow的查询接口一次,以此来获取最新的状态流转。
在loonflow的管理后台新增工作流后,通过获取工作流列表的接口并没有返回, 或者在deme(workflowdemo,shutongflow)中新建工单时候无法选择新的工作流
工作流的回退,后台正常停止流转,但是前端的待办中的详情里面的进度条和内容却一直进行下去,没有显示回退到的那个界面信息
一个流程,如果当发起人是本部门的TL,此时需要本部门的另外一个TL审核时,如何处理
1、显示该工单流程情况——完成了哪些,目前处于哪个状态,哪些为完成。
由于工单详情接口返回了当前工单的状态id(state_id),未返回状态的排序order。在使用flask模板的时候,由于for循环的作用域问题,很难区分完成了哪些,未完成哪些。需要用order值进一步加以判断。希望能提供order
2、希望显示工作流的当前状态以及每个状态的处理人。已处理的显示时间,未处理的显示处理人。应该调用哪个接口?
当有个节点是执行脚本的时候,脚本执行完了,如何流转到下一个节点,在脚本里写调接口的代码么?
工单的所有变化,希望能将事件推送到某个IP某个端口,方便做定制化;
比如推送到192.168.1.2:8000端口
,我会在192.168.1.2上监听8000,获取到推送的事件,解析后判断,做自动化执行脚本,或者推送微信消息,或者等等
执行 : celery -A tasks worker -l info -Q loonflow
报错:return self[key] KeyError: 'async'
通过升级 celery版本为4.1.1解决
请问通知的脚本,也是demo_script那个样子么?没有提供模板
这里应该是workflow_states_object的id字段
工单详情接口返回的json格式,key是否可以用规范双引号而不是单引号
审批流程里,有一种审批。
比如:有两种类型的审批流程A和B,B流程的发起,依赖A流程的审批完成。
工单在操作过程中,有些中间过程的结果需要添加到工单的评论中,工单相关的人可以查阅。
1、’提交表单的时候,并没有提交创建者信息creator_info相关信息,是何时写入的?
2、用headers里的username?
3、如果同名同姓的人,如何正确获取工单相关信息。如何用id的,同步个人信息时如何确保人员能对应更新?
比如:在外部系统里,【userid=1000,username='张三'】【userid=1001,username='张三'】。同步到这个工作流引擎里,id是自动的,只同步了username字段。那更新时,同名同姓的如何同步更新?
ticket_data = models.CharField('工单数据', max_length=10000, default='', blank=True, help_text='可以用于记录当前表单数据,json格式')
所有的工单产生的数据都存在json 字段中了, 那么字段统计的工作该怎么做
例如,定义了一个请假的流程,那么领导需要看本月总,平均,请假的时长该如何做?
新建工单时,workflow_id和transition_id建议引擎端做类型判断。
如果是字符串类型,引擎端转整型后判断。
工单应用场景中,经常需要上传一些附件,就像jira。上传附件是工单共有的功能。
settings/pro.py 缺少celery_broker_url,默认会导致celery起不来
1、当一个流程到“结束状态”的时候,是否就结束了?
2、如何知道一个流程已经结束了。判断steps?
3、trainsition里如果该流程是结束状态,则返回code=-1。我怎么判断这个-1是结束状态的-1,还是异常返回的?
我会保证每个问题 1-2天内解答。建议提交issue,方便其他同学查看历史问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.