561 lines
34 KiB
JSON
561 lines
34 KiB
JSON
{
|
|
"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": "eea12101-9ee4-4654-a171-f7f3ca4bc4f4"
|
|
},
|
|
"Value": "钉钉回调事件"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "日志表",
|
|
"ColumnName": "内容",
|
|
"GUID": "193c1f85-8586-44fb-a962-bd714a56785d"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "日志表",
|
|
"ColumnName": "类型",
|
|
"GUID": "5b49edec-1bf8-4890-a685-76d4c0215b08"
|
|
},
|
|
"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.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "会议信息",
|
|
"TableValue": {
|
|
"TableName": "会议记录表",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "1bc93d72-a847-4519-b43c-0cd749afa635",
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "ID",
|
|
"GUID": "c394d36d-947d-4577-bc9f-fa1daeaa46b6"
|
|
},
|
|
"ColumnName": "ID"
|
|
},
|
|
{
|
|
"GUID": "b444411f-47e9-4398-afbc-663c187657ff",
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "自动拉会",
|
|
"GUID": "86536872-fe31-4010-95b9-954772022c94"
|
|
},
|
|
"ColumnName": "自动拉会"
|
|
},
|
|
{
|
|
"GUID": "46df0d8d-b41f-466c-8281-d2fc8eabea89",
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "项目ID",
|
|
"GUID": "574d7686-411a-4305-8085-a8f04e34062c"
|
|
},
|
|
"ColumnName": "项目ID"
|
|
},
|
|
{
|
|
"GUID": "c388a90a-2b0b-47df-9a96-96d67cdaf314",
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "邀请三经理",
|
|
"GUID": "8e610369-e881-4db9-be3c-26b39a07676a"
|
|
},
|
|
"ColumnName": "邀请三经理"
|
|
},
|
|
{
|
|
"GUID": "56d9b1ae-b2f0-43f2-ab6e-2d5a001ec13e",
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "开启云录制",
|
|
"GUID": "12ec40f2-2490-4c52-af93-e0fedf5940d1"
|
|
},
|
|
"ColumnName": "开启云录制"
|
|
},
|
|
{
|
|
"GUID": "308fc235-15dd-4d33-a2cc-f9e726781776",
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议标题",
|
|
"GUID": "d6a5235b-f313-4be6-bfb8-83b62de95768"
|
|
},
|
|
"ColumnName": "会议标题"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "钉钉会议ID",
|
|
"GUID": "9699aa04-9439-4c6d-8558-1e0b6214e5bc"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体.openConfModel.conferenceId"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "00e5b220d2c04d6fa33f10cd9600a8bb"
|
|
},
|
|
{
|
|
"$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": "%Null%",
|
|
"compareType": 1
|
|
},
|
|
"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": "eb09e5c66ae84e4ea3b9dbf8ea873632"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "会议记录表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "ID",
|
|
"GUID": "b8ab3059-5568-459f-859d-836e8220526e"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议业务类型",
|
|
"GUID": "aebc6caa-4186-42be-bf66-4b4933b7764f"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体.openConfModel.bizType"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议开始时间",
|
|
"GUID": "9eaf9a31-bbb3-4e87-9296-d208246c61dc"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议开始时间"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议持续时间",
|
|
"GUID": "95c2a67a-6774-450a-8400-2281cc80692d"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体.openConfModel.confDuration"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议状态",
|
|
"GUID": "97444c11-8f74-430f-a52c-f751dc89f219"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体.openConfModel.status"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Comments": "会议创建事件",
|
|
"ID": "65e0184c-a8dd-40a1-b25a-6aab44fba513"
|
|
},
|
|
{
|
|
"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": "c17a68dc25b24a7895fb049f55c76745"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "会议记录表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "ID",
|
|
"GUID": "5432f0fa-d012-49ba-808e-cf9df1a73b6f"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议结束时间",
|
|
"GUID": "c61ecd30-1567-4ec1-8486-942b6abb470b"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议结束时间"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议持续时间",
|
|
"GUID": "da510f75-dbfd-4550-9d3f-3a3ead6a510e"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体.openConfModel.confDuration"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "会议记录表",
|
|
"ColumnName": "会议状态",
|
|
"GUID": "d06ef35f-7f6f-4cf5-b96a-b37de70d8b96"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=事件体.openConfModel.status"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$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": "1"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "创建项目视频会议",
|
|
"Parameters": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "项目ID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.自动拉会"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "会议标题",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.会议标题"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "邀请三经理",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.邀请三经理"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "开启云录制",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.开启云录制"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "自动拉会",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=会议信息.自动拉会"
|
|
}
|
|
}
|
|
],
|
|
"ResultErrorCodeTo": {
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"ReturnPropertiesTo": [
|
|
{
|
|
"ResultPropertyName": "会议ID",
|
|
"ResultTo": {
|
|
"SerializeProperty": "创建会议ID"
|
|
}
|
|
}
|
|
],
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true
|
|
}
|
|
],
|
|
"ID": "f61db545-e3fc-48ec-9f93-e02a5b707c37"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "110bb39b-c482-4c26-9177-bcba893ff6df"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "555d1fe3-daee-443c-b0d2-5b6370e8af68"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Comments": "会议状态变更",
|
|
"ID": "21aee59a-d960-489b-935a-6f342a96e084"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |