{"Message":"1. 更新任务首页;\r\n2. 增加邮件模板设计器插件;","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/FGC_审批记录"},{"State":1,"Type":1,"Name":"PCPage/项目列表"},{"State":1,"Type":1,"Name":"PCPage/任务列表"},{"State":1,"Type":1,"Name":"PCPage/任务首页"},{"State":1,"Type":1,"Name":"PCPage/任务-侧栏"},{"State":1,"Type":1,"Name":"PCPage/任务-基本信息"},{"State":1,"Type":1,"Name":"PCPage/任务-子任务列表"},{"State":1,"Type":1,"Name":"PCPage/任务-工时"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":31,"Name":"UserControlPage/评论组件"},{"State":1,"Type":31,"Name":"UserControlPage/发表评论组件"},{"State":2,"Type":15,"Name":"ServerCommand/新增任务"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":1,"Name":"PCPage/选择图标"},{"State":2,"Type":28,"Name":"ProcessItem/任务分配流程"},{"State":3,"Type":15,"Name":"ServerCommand/任务发起流程前校验"},{"State":3,"Type":28,"Name":"ProcessItem/新增任务流程"},{"State":3,"Type":15,"Name":"ServerCommand/发起任务流程"},{"State":3,"Type":6,"Name":"Pages/邮件模板"},{"State":3,"Type":1,"Name":"PCPage/模板编辑器"},{"State":3,"Type":7,"Name":"Table/邮件模板表"}],"Version":"v1"}
This commit is contained in:
407
ServerCommands/任务/发起任务流程.json
Normal file
407
ServerCommands/任务/发起任务流程.json
Normal file
@@ -0,0 +1,407 @@
|
||||
{
|
||||
"Name": "发起任务流程",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
||||
"Permission": {
|
||||
"PermissionData": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
||||
"permissionResource": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
||||
},
|
||||
"permissionBindings": [
|
||||
{
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
||||
"roleNames": [
|
||||
"FGC_LoginUser"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "任务ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
"TryCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "任务",
|
||||
"TableValue": {
|
||||
"TableName": "任务表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "29ef26eb-d840-4c9a-9c95-7fb94555e468",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务名称",
|
||||
"GUID": "23b7dbfa-171e-4463-a302-07dcc9e15141"
|
||||
},
|
||||
"ColumnName": "任务名称"
|
||||
},
|
||||
{
|
||||
"GUID": "455904f9-0302-4dba-bbb7-9ca41568b71a",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "执行者",
|
||||
"GUID": "a1fbd5f9-b9e7-48e1-ba59-913b1aee850d"
|
||||
},
|
||||
"ColumnName": "执行者"
|
||||
},
|
||||
{
|
||||
"GUID": "30cf70fc-ce55-4877-85d9-ee42f17546d5",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "2dcf421f-4618-413d-873f-88bb355c8d8e",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "项目经理"
|
||||
}
|
||||
},
|
||||
"ColumnName": "项目经理"
|
||||
},
|
||||
{
|
||||
"GUID": "5078d1a6-51b3-4c5a-87a8-4bb42d3bc3c4",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "项目ID",
|
||||
"GUID": "6209726f-6934-4ee5-b1ad-98534c6bfa4f",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "项目表",
|
||||
"RelatedColumn": "ID",
|
||||
"DisplayColumn": "项目状态"
|
||||
}
|
||||
},
|
||||
"ColumnName": "项目状态"
|
||||
},
|
||||
{
|
||||
"GUID": "6cde8ce1-69da-4f09-95af-5f939077380d",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "任务状态",
|
||||
"GUID": "023c19f4-f67f-4a16-ad52-7047a5897f4b"
|
||||
},
|
||||
"ColumnName": "任务状态"
|
||||
},
|
||||
{
|
||||
"GUID": "9425dcd6-ee84-4cff-8cb0-32f8e2b5ef9b",
|
||||
"BindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "流程实例ID",
|
||||
"GUID": "eb2c2ccd-767e-4d72-a9e7-fb88915964bd"
|
||||
},
|
||||
"ColumnName": "流程实例ID"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "4c5addad-85da-4ff4-8b0c-2fe87e45f6ba"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "3d8ab8d2f0924421bdd75fb25888a8d5"
|
||||
},
|
||||
{
|
||||
"$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": "=任务.项目状态"
|
||||
}
|
||||
},
|
||||
"value": "2",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.任务状态"
|
||||
}
|
||||
},
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.任务状态"
|
||||
}
|
||||
},
|
||||
"value": "-1"
|
||||
}
|
||||
],
|
||||
"RelationType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ProcessStartCommand, ServerDesignerCommon",
|
||||
"ProcessDefinitionResourceName": "新增任务流程",
|
||||
"ProcessInstanceName": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.任务名称"
|
||||
},
|
||||
"SelectedTable": "任务表",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "任务表",
|
||||
"ColumnName": "ID",
|
||||
"GUID": "5890a609-fa92-4828-958b-5b13d2752057"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务ID"
|
||||
}
|
||||
},
|
||||
"ReturnResultName": "发起流程结果"
|
||||
},
|
||||
{
|
||||
"$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": "=任务.流程实例ID"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "查找任务",
|
||||
"TableValue": {
|
||||
"TableName": "ACT_HI_TASKINST_View",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "a2b011dc-2a16-473b-b3b9-bde26f13bddc",
|
||||
"BindingInfo": {
|
||||
"TableName": "ACT_HI_TASKINST_View",
|
||||
"ColumnName": "ID_",
|
||||
"GUID": "d0536ada-ff9c-4df5-b489-a0684ae8005a"
|
||||
},
|
||||
"ColumnName": "ID"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "ACT_HI_TASKINST_View",
|
||||
"ColumnName": "PROC_INST_ID_",
|
||||
"GUID": "ce528664-a069-42b1-b4cf-26f468c181cc"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=发起流程结果.ID"
|
||||
}
|
||||
},
|
||||
"TopCount": "1",
|
||||
"OrderBySqlCondition": {
|
||||
"OrderByColumns": [
|
||||
{
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "ACT_HI_TASKINST_View",
|
||||
"ColumnName": "START_TIME_",
|
||||
"GUID": "c84da339-3220-4914-9160-e9893d78bfcf"
|
||||
},
|
||||
"Order": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ID": "df4ba27143da4ef1926f2b05f3ad6c05"
|
||||
},
|
||||
{
|
||||
"$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.ProcessTaskCommand, ServerDesignerCommon",
|
||||
"TaskId": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=查找任务.ID"
|
||||
},
|
||||
"CustomOperationName": "提交",
|
||||
"Operator": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=任务.执行者"
|
||||
},
|
||||
"Comment": "系统自动提交"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "发起流程成功!"
|
||||
}
|
||||
],
|
||||
"ID": "538a870c-2dbd-457c-8376-cdd65a13778e"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "发起流程成功,请在任务首页手动提交!"
|
||||
}
|
||||
],
|
||||
"ID": "686eac20-159f-47b3-af18-98b561a23926"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "b0afa112-c3bf-436e-8825-7ca3c4ea827a"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "发起流程失败"
|
||||
}
|
||||
],
|
||||
"ID": "28d09d00-0c63-411d-9671-d9638d8dea95"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "0db22abd-802d-4a9a-82d2-a4916ff55327"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "当前任务状态不允许发起申请!"
|
||||
}
|
||||
],
|
||||
"ID": "3d464f63-1e9b-4b73-befc-de21f74f4c38"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "25f8696e-7e2d-49f4-86ef-2328e2871047"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "当前项目已不在进行中状态,无法提交任务!"
|
||||
}
|
||||
],
|
||||
"ID": "82f89f99-1a71-4c38-ad54-5f4e2a48f03d"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bc582f6e-8cf5-474b-8183-43f925a4937c"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "任务不存在"
|
||||
}
|
||||
],
|
||||
"ID": "baf44142-3577-44d7-a831-1077b74eeb08"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"CatchCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ExceptionCode"
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ExceptionMessage"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user