流程事件描述


            



发起流程时,可以看到有保存,提交按钮。

直接点保存时,会将表单内容保存,同时执行配置的保存(save)事件,同步数据至业务,这时流程是暂存状态,待发起

暂存状态流程直接点提交,此时会执行配置的提交事件(submit), 这时候流程审批状态,审批中

审批中流程点审批,会执行配置在节点的 校验、节点前、节点后 事件,同步数据&状态至业务,这时候流程状态,审批中

审批中流程点撤销,会执行撤销(cancel)事件,同步数据&状态至业务,这时候流程审批状态,撤销

审批中流程审批完成,会执行完成(finish)事件,同步数据&状态至业务,这时候流程审批状态,审批成功

审批中流程审批拒绝,会执行拒绝(reject)事件,同步数据&状态至业务,这时候流程审批状态,审批不同意


流程审批过程中配置的事件都是为了同步业务数据,相关的事件接口都是由业务提供,下列表中给出了对应模块需要的事件及详细配置描述


save-保存事件,  submit-提交事件  配置在开始节点

finish-完成事件   reject-拒绝事件   配置在结束节点

cancel-取消事件                                 配置在取消节点


参数常量: event:   流程事件,取数可选项    save-保存事件,  submit-提交事件,finish-完成事件   reject-拒绝事件,cancel-取消事件

                    wf_inst_id:    流程实例id,取数方法:"@api:inst.id@"

                    form_data:    流程表单数据,取数方法: "@api:form_data@"

其他流程中的取数规则可以参考wiki 04. 流程表达式说明

                   

考勤


休假

事件名称API参数(流程事件配置参数)版本备注
流程事件回事考勤单据

time.bill.leave.wf.event

{

     event:  [必填] 流程事件,

     wf_inst_id: [必填] 流程实例id, eg: @api:inst.id@,

     form_data:[必填]  流程表单数据,eg: @api:form_data@

}

v1 v2旧版流程事件,参数由系统自动构造
请休假流程事件回写休假单据   time.bill.v3.leave.wf.event{
       "event": [必填] 流程事件
       "wf_inst_id": [必填] 流程实例id, eg: @api:inst.id@,
}
v3

v3休假回写事件,包括保存、提交、完成、拒绝、撤销事件。

配置在开始、结束节点即可触发

请休假流程校验-标准校验

time.bill.v3.leave.wf.check


{
       "event":  [必填] 流程事件,
       "wf_inst_id": [必填] 流程实例id, eg: @api:inst.id@,
}


v3v3休假标准校验事件,一般配置在开始节点处,在流程提交时进行数据校验
请休假流程校验-自定义校验time.bill.v3.check.common

{

       "event": [必填] 流程事件

       "wf_inst_id": [必填] 流程实例id, eg: @api:inst.id@,

       "CHECKS":  [必填] 校验器列表,

                            eg ["TIME_CHECK",  "SEAL_DATE"],

       "func_params": [非必填]一些校验器参数,

暂时校验器参数都是表单中数据,不需要传

}

v3

v3休假自定义校验事件

CHECKS校验器说明:

TIME_CHECK:校验表单中开始、结束时间先后顺序

SEAL_DATE:   校验封存日期

其他可选校验器可查看wiki:03考勤流程校验器


加班

事件名称API参数(流程事件配置参数)版本备注
流程事件回事考勤单据

time.bill.overtime.wf.event


v1 v2
加班流程事件回写加班单据,   提交事件time.bill.v3.overtime.wf.event{
       "event": "submit",
       "wf_inst_id": "@api:inst.id@"
}
v3
加班流程事件回写加班单据,   完成事件time.bill.v3.overtime.wf.event{
       "event": "finish",
       "wf_inst_id": "@api:inst.id@"
}
v3
加班流程事件回写加班单据,   拒绝事件time.bill.v3.overtime.wf.event{
       "event": "reject",
       "wf_inst_id": "@api:inst.id@"
}
v3
加班流程事件回写加班单据,   撤销事件time.bill.v3.overtime.wf.event{
       "event": "cancel",
       "wf_inst_id": "@api:inst.id@"
}
v3
加班流程校验

1.time.bill.v3.overtime.wf.check(包含标准校验)

2.time.bill.v3.check.common(自定义校验器)

1.{
       "event": "submit",
       "wf_inst_id": "@api:inst.id@"
}

2.{
"event": "submit",
"CHECKS": ["TIME_CHECK", "SEAL_DATE", "IS_PROFILE_CHANGE", "O_C_O", "O_C_S",  "O_C_C"],
"wf_inst_id": "@api:inst.id@"
}

v3


出差

事件名称API参数(流程事件配置参数)版本备注
流程事件回事考勤单据

time.bill.leave.wf.event


v1 v2
出差流程事件回写出差单据,   提交事件time.bill.v3.business.trip.wf.event{
       "event": "submit",
       "wf_inst_id": "@api:inst.id@"
}
v3
出差流程事件回写出差单据,   完成事件time.bill.v3.business.trip.wf.event{
       "event": "finish",
       "wf_inst_id": "@api:inst.id@"
}
v3
出差流程事件回写出差单据,   拒绝事件time.bill.v3.business.trip.wf.event{
       "event": "reject",
       "wf_inst_id": "@api:inst.id@"
}
v3
出差流程事件回写出差单据,   撤销事件time.bill.v3.business.trip.wf.event{
       "event": "cancel",
       "wf_inst_id": "@api:inst.id@"
}
v3
出差流程校验

1.time.bill.v3.business.trip.wf.check(包含标准校验)

2.time.bill.v3.check.common(自定义校验器)

1.{
       "event": "submit",
       "wf_inst_id": "@api:inst.id@"
}

2.{
"event": "submit",
"CHECKS": [

"TIME_CHECK", "SEAL_DATE", "IS_PROFILE_CHANGE", "L_C_T", "L_C_L"

],
"wf_inst_id": "@api:inst.id@"
}

v3


补签

事件名称API参数(流程事件配置参数)版本备注
流程事件回事考勤单据

time.bill.fill.card.wf.event


v1 v2
补签流程事件回写补签单据,   提交事件time.bill.v3.report.fill.card.wf.event{
       "event": "submit",
       "wf_inst_id": "@api:inst.id@"
}
v3
补签流程事件回写补签单据,   完成事件time.bill.v3.report.fill.card.wf.event{
       "event": "finish",
       "wf_inst_id": "@api:inst.id@"
}
v3
补签流程事件回写补签单据,   拒绝事件time.bill.v3.report.fill.card.wf.event{
       "event": "reject",
       "wf_inst_id": "@api:inst.id@"
}
v3
补签流程事件回写补签单据,   撤销事件time.bill.v3.report.fill.card.wf.event{
       "event": "cancel",
       "wf_inst_id": "@api:inst.id@"
}
v3
补签流程校验


time.bill.v3.fillcard.wf.check

{
"event": "submit",
"wf_inst_id": "@api:inst.id@"
}

v3



人事

离职(专员)

事件名称API参数(流程事件配置参数)版本备注
离职信息回写人员信息主集affair.action.effect.or.check.main

{
     "mode":  [必填]  执行模式,表示进行合作操作,
     "details": [必填]  人事事务属性列表,
     "action_details":  [可选]
}

v1 v2 v3

model 可选配置:

"effect":生效+校验; "check":只校验

detail必包含配置:

[{

     "action_id":                     [必填]  变动事务,
     "begin_date":                  [必填]  生效日期,
     "employee_id":                [必填] 调动人 ,

     "employee_category_id":  [必填]  员工类型,
     "position_id":                   [必填]  调动后岗位,
     "position_type":                [必填]  任职类型,
     "old_position_id":             [必填]  调动前岗位,
     "action_reason_id":          [必填]   变动原因,
     "position_status_id":         [必填]  岗位状态信息,

}]

action_details必包含配置:

[{

       "check_way":         [必填]  1:校验出入口+校验关联约束; 2:校验出入口,
       "only_check":         [必填]  true:只校验; false:校验+生效,
       "action_in_pos":    [必填]  1:detail里的主业务; 2:所有兼职终止; 3:所有借调终止; 4:所有挂职终止; 5:借调终止业务,借出前的主任职 6:借入业务,获取主任职判断是否借出状态 7:所有委派终止,
       "action_number": [必填]  事务编码,
       "action_out_position_type": [必填]  任职类型,
       "action_out_action_reason_name":     [必填] 变动原因,
       "action_out_position_status_name":    [必填] 出口岗位状态,
       "action_out_employee_category_name": [必填] 出口用工类型

}]

人员信息生效affair.action.effect.employee

{

    "details":   [必填] 人员生效信息列表
}

v1 v2 v3

detail必包含配置:

[{ "employee_id":""}]      人员id列表










薪酬


事件名称API参数(流程事件配置参数)版本备注


















培训


事件名称API参数(流程事件配置参数)版本备注

















合同


事件名称API参数(流程事件配置参数)版本备注
合同结束完成事件contract.bill.wf.event.v3{
"back": false,
"bills": "@form.bill_id@"
}
V3(单个人) 流程
合同拒绝事件contract.bill.wf.event.v3{
"back": "reject",
"bills": "@form.bill_id@"
}
V3(单个人) 流程
合同取消事件contract.bill.wf.event.v3{
"back": "cancel",
"bills": "@form.bill_id@"
}
V3(单个人) 流程






















  • 无标签

评论

  1. 温瑞霞 发表:

    建议再增加上API的业务逻辑描述吧,比如休假提交事件主要处理啥业务,比如更改了什么状态等等