public partial class Handles : BaseHandles
{
public Handles(TransmitData transmitData) : base(transmitData)
{
}
#region 此处只是示例,实际请删除
/// <summary>
/// 审批任务开始,结束,转交
/// </summary>
/// <returns></returns>
public void bpms_task_change()
{
//这里写收到回调时要执行的代码,this.transmitData.requestPara即钉钉回调发过来的参数
//log记录
Helpers.LoggerHelper.Info(this.transmitData.requestPara["title"].ToString());
}
public void bpms_instance_change()
{
//log 记录
//Helpers.LoggerHelper.Info("EventType:" + this.transmitData.requestPara["EventType"].ToString());
//Helpers.LoggerHelper.Info("processInstanceId:" + this.transmitData.requestPara["processInstanceId"].ToString());
//Helpers.LoggerHelper.Info("corpId:" + this.transmitData.requestPara["corpId"].ToString());
//Helpers.LoggerHelper.Info("createTime:" + this.transmitData.requestPara["createTime"].ToString());
//Helpers.LoggerHelper.Info("finishTime:" + this.transmitData.requestPara["finishTime"].ToString());
//Helpers.LoggerHelper.Info("title:" + this.transmitData.requestPara["title"].ToString());
//Helpers.LoggerHelper.Info("type:" + this.transmitData.requestPara["type"].ToString());
//Helpers.LoggerHelper.Info("staffId:" + this.transmitData.requestPara["staffId"].ToString());
//Helpers.LoggerHelper.Info("url:" + this.transmitData.requestPara["url"].ToString());
//Helpers.LoggerHelper.Info("result:" + this.transmitData.requestPara["result"].ToString());
//Helpers.LoggerHelper.Info("processCode:" + this.transmitData.requestPara["processCode"].ToString());
//Helpers.LoggerHelper.Info("==========================================");
//接收回调参数
string EventType = this.transmitData.requestPara["EventType"].ToString();//事件类型
string processInstanceId = this.transmitData.requestPara["processInstanceId"].ToString();//审批实例id
string corpId = this.transmitData.requestPara["corpId"].ToString();//审批实例对应的企业
string createTime = this.transmitData.requestPara["createTime"].ToString();//实例创建时间
string finishTime = this.transmitData.requestPara["finishTime"].ToString();//审批结束时间
string title = this.transmitData.requestPara["title"].ToString();//实例标题
string type = this.transmitData.requestPara["type"].ToString();//审批正常结束(同意或拒绝)的type为finish,审批终止的type为terminate
string staffId = this.transmitData.requestPara["staffId"