{ "Name": "订阅钉钉回调事件", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon" } ], "Commands": [ { "$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon", "TryCommandPart": { "CommandList": [ { "$type": "DingTalkPlugin.DingtalkStream, DingTalkPlugin", "CommandList": { "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", "Commands": [ { "$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon", "TryCommandPart": { "CommandList": [ { "$type": "JsonUtilityCommand.JsonSerializeCommand, JsonUtilityCommand", "SourceObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体" }, "ToParameter": "jsonstring", "Disabled": true }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "日志表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "日志表", "ColumnName": "标题", "GUID": "b6be6f1d-2125-45b1-90d8-81a2a3bc4f9c" }, "Value": "钉钉回调事件" }, { "BindingInfo": { "TableName": "日志表", "ColumnName": "内容", "GUID": "1c9b0efb-e26d-4ccf-8100-a926c9a1cb08" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体" } }, { "BindingInfo": { "TableName": "日志表", "ColumnName": "类型", "GUID": "39d7c9da-07d9-4b66-bf39-4928ef7bdad9" }, "Value": "Info" } ] }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件类型" } }, "value": "meeting_status_change" }, "CommandList": [ { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.changeScene" } }, "value": "conference_created" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "会议开始时间", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=(事件体.openConfModel.startTime/1000/60/60/24)+DATE(1970,1,1)" }, "ID": "67a6eacbe87440258255fdae83fc3844" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "会议记录表", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "会议记录表", "ColumnName": "钉钉会议ID", "GUID": "8bad996d-33a8-4d83-9871-eb5fc4bc5d0d" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.conferenceId" } }, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议业务类型", "GUID": "cb2afa4c-d30d-44dc-acc7-8c6abcf7f755" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.bizType" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议开始时间", "GUID": "93cd84fe-01a3-489d-a8a5-ee031662c735" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=会议开始时间" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议持续时间", "GUID": "2b73f3ad-1641-4205-98ce-e94a6cbd2df9" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.confDuration" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议状态", "GUID": "650e211a-47d5-4b6f-90c0-f6873fc4a2f2" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.status" } } ] } ], "Comments": "会议创建事件", "ID": "f981a0a3-2650-4d2c-bb20-3beceb2d9e6c" }, { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.changeScene" } }, "value": "conference_closed" }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "会议结束时间", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=(事件体.openConfModel.startTime/1000/60/60/24)+DATE(1970,1,1)" }, "ID": "722da488cdd348e9abe70615143cee68" }, { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "会议记录表", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "会议记录表", "ColumnName": "钉钉会议ID", "GUID": "8bad996d-33a8-4d83-9871-eb5fc4bc5d0d" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.conferenceId" } }, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议结束时间", "GUID": "51660e50-7bfc-4e48-ad1b-904b32075cc4" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=会议结束时间" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议持续时间", "GUID": "f37e42e7-b744-414b-851f-78e95df8e518" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.confDuration" } }, { "BindingInfo": { "TableName": "会议记录表", "ColumnName": "会议状态", "GUID": "54c167de-8b3f-49b4-9f09-a1af7c5af723" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=事件体.openConfModel.status" } } ] } ], "ID": "4a3dbf32-ff5b-41ff-9c9b-a62e6b7050d0" } ] } ], "Comments": "会议状态变更", "ID": "a4967d4b-4c3f-4069-93d6-38d6562a74d1" } ], "Disabled": true }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "回调事件数据已被处理" } ] }, "CatchCommandPart": { "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "日志表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "日志表", "ColumnName": "标题", "GUID": "e8a772da-4305-4dbc-bc32-429867fddbfd" }, "Value": "钉钉回调处理异常" }, { "BindingInfo": { "TableName": "日志表", "ColumnName": "内容", "GUID": "76aff35f-15ae-4591-9756-53460b7325cd" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionCode" } }, { "BindingInfo": { "TableName": "日志表", "ColumnName": "类型", "GUID": "729f0ffa-bd9c-4252-ac88-239ecc5b864f" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionMessage" } } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionCode" }, "Message": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionMessage" } } ] } } ], "ParamProperties": { "eventUnifiedAppId": "统一应用身份Id", "eventCorpId": "事件所属的corpId", "eventType": "事件类型", "eventId": "事件的唯一Id", "eventBornTime": "事件生成时间", "data": "事件体" } } } ] }, "CatchCommandPart": { "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "日志表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "日志表", "ColumnName": "标题", "GUID": "e6b11501-8180-4ed2-a935-b44a2108ebbc" }, "Value": "订阅钉钉回调事件注册" }, { "BindingInfo": { "TableName": "日志表", "ColumnName": "内容", "GUID": "816e9dbd-58bb-4aff-858a-9ff9968a4b0b" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ExceptionMessage" } }, { "BindingInfo": { "TableName": "日志表", "ColumnName": "类型", "GUID": "7f1b826e-2cf0-45aa-b88d-5519244f8d37" }, "Value": "Error" } ] } ] } } ] }