UNPKG

rh-vue3-snakerflow-designer

Version:

情怀!N年前使用的工作流引擎,虽然原作者已经不再维护,但是还是有那么一波人还在使用。个人看来其核心功能尚好,麻雀虽少,五脏俱全,是用来学习工作流引擎的好项目。但其流程设计器所用的技术栈可能就跟不上时代了(2016年前的开源项目)。为了让大伙或自己用得更舒心,或者也为了让更多人认识或重新认识这个工作流引擎。本人就花些许时间,使用现阶段前端主流的技术栈重新开发此款流程设计器。如大家在使用的过程中如有啥问题,欢迎留言或进群交流!

51 lines (50 loc) 1.09 kB
export interface ProcessModel { // 流程名称 name: string; // 流程显示名称 displayName: string; // 过期时间 expireTime: string; // 启动流程实例url或表单key instanceUrl: string; // 自定义流程实例流水号类 instanceNoClass: string; // 当前图上所有节点的model nodes: BaseNodeModel[]; // 当前图上所有边的model edges: BaseEdgeModel[]; } export interface FlowFormModel extends ProcessModel { type: string; preInterceptors: string, postInterceptors: string, id: string, x: number, y: number, properties: {}, clazz: string, methodName: string, args: string, expr: string, handleClass: string, form: string, assignee: string, assignmentHandler: string, taskType: string, performType: string, reminderTime: string, reminderRepeat: string, autoExecute: string, callback: string, width: number, height: number, field: any, fieldStr: string, ptype: number, views: string } export interface PropertyEvent { type: NodeType, propertyName: string, propertyValue: any, }