47 lines
1.4 KiB
JSON
47 lines
1.4 KiB
JSON
{
|
|
"id": "process-queue",
|
|
"label": "处理队列",
|
|
"description": "从业务队列处理待处理记录。有勾选则处理勾选的;没有勾选则按下方数量从队列领取。已成功或失败的会自动跳过。进度可在任务中心查看。",
|
|
"placements": ["toolbar", "batch", "cron", "agent"],
|
|
"executionProfile": "async",
|
|
"interaction": "form",
|
|
"confirmation": {
|
|
"message": "将按规则处理记录(有勾选则处理勾选的;未勾选则按数量从队列领取),是否继续?"
|
|
},
|
|
"bind": {
|
|
"tables": ["business_items"],
|
|
"selectionMode": "optional",
|
|
"labelColumn": "display_name",
|
|
"inputMapping": {
|
|
"itemIds": "$selection.ids"
|
|
}
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["itemIds", "pickCount"],
|
|
"properties": {
|
|
"itemIds": {
|
|
"type": "string",
|
|
"title": "编号列表",
|
|
"description": "有勾选时自动填入,一般无需修改",
|
|
"readOnly": true
|
|
},
|
|
"pickCount": {
|
|
"type": "number",
|
|
"title": "处理数量",
|
|
"description": "没有勾选时:从待处理队列里领取的条数",
|
|
"default": 1,
|
|
"minimum": 1
|
|
}
|
|
}
|
|
},
|
|
"entrypoint": {
|
|
"type": "cli",
|
|
"command": "process",
|
|
"args": ["--ids", "{{itemIds}}", "--pick", "{{pickCount}}"]
|
|
},
|
|
"hostEffects": {
|
|
"onSuccess": ["reloadTable", "clearSelection"]
|
|
}
|
|
}
|