Commit 8b407d8b by 罗建民

--story=1013884 --user=罗建民 工作流通知改造升级 https://www.tapd.cn/56664057/s/1131397

parent 8da65d87
Showing with 102 additions and 83 deletions
...@@ -709,31 +709,9 @@ ...@@ -709,31 +709,9 @@
"label": "去处理", "label": "去处理",
"container": "sidebar", "container": "sidebar",
"action": "showList", "action": "showList",
"model": "uniplat_process_instance@intent_example",
"parameters": { "parameters": {
"listName": "notifyList", "listName": "simple1",
"prefilters": [ "prefilters": [
{
"property": "model_name",
"operator": "",
"value": "Example1"
},
{
"property": "process_name",
"value": "提醒"
},
{
"property": "finish_time__isnull",
"value": ""
},
{
"property": "task_begin_time__lte",
"value": "{{env.now.value}}"
},
{
"property": "task_end_time__gte",
"value": "{{env.now.value}}"
}
] ]
} }
} }
...@@ -1205,43 +1183,80 @@ ...@@ -1205,43 +1183,80 @@
], ],
"detail_action_visible": true, "detail_action_visible": true,
"log_action_visible": false, "log_action_visible": false,
"workflowNotify": { "notifies": [
"title": "提醒", {
"prefilters": [ "label": "提醒",
{ "prefilters": [
"property": "model_name", {
"operator": "", "property": "id__lt",
"value": "'Example1'" "value": "10"
}, }
{ ],
"property": "process_name", "modelName": "Example1",
"value": "'提醒'" "listName": "simple1"
}, },
{ {
"property": "finish_time__isnull", "label": "警告",
"operator": "", "prefilters": [
"value": "" {
}, "property": "id__gt",
{ "value": "10"
"property": "task_begin_time__lte", }
"value": "{{env.now.value}}" ],
}, "modelName": "Example1",
{ "listName": "simple2"
"property": "task_end_time__gte", }
"value": "{{env.now.value}}" ]
} },
], {
"sorts": [ "name": "simple1",
{ "label": "简单列表1",
"property": "task_begin_time", "filters": [
"type": "asc" ],
}, "actions": [
{ ],
"property": "priority", "field_groups": [
"type": "desc" {
} "label": "id",
] "template": "{id}"
} },
{
"label": "name",
"template": "{name}"
}
],
"row_actions": [
],
"rowIntents": [
],
"intents": [
"showNotifyList"
],
"detail_action_visible": true,
"log_action_visible": false
},
{
"name": "simple2",
"label": "简单列表2",
"filters": [
],
"actions": [
],
"field_groups": [
{
"label": "name",
"template": "{name}"
}
],
"row_actions": [
],
"rowIntents": [
],
"intents": [
"showNotifyList"
],
"detail_action_visible": true,
"log_action_visible": false
} }
], ],
"detail": { "detail": {
...@@ -1373,29 +1388,33 @@ ...@@ -1373,29 +1388,33 @@
] ]
} }
], ],
"workflowNotify": { "notifies": [
"title": "提醒", {
"prefilters": [ "label": "提醒",
{ "prefilters": [
"property": "process_name", {
"value": "'提醒'" "property": "process_name",
}, "value": "'提醒'"
{ },
"property": "finish_time", {
"operator": "isnull", "property": "finish_time",
"value": "" "operator": "isnull",
}, "value": ""
{ },
"property": "model_name", {
"operator": "", "property": "model_name",
"value": "'Example1'" "operator": "",
}, "value": "'Example1'"
{ },
"property": "associate_id", {
"value": "{{object.id.value}}" "property": "associate_id",
} "value": "{{object.id.value}}"
] }
} ],
"modelName": "uniplat_process_instance@intent_example",
"listName": "simpleNotifyList"
}
]
}, },
"details": [ "details": [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment