Commit b5e28812 by 张蕴鹏

feat(工作流):catalog,title,启动流程变动

parent 263ca1a9
import com.qinqinxiaobao.report.uniplat.engine.DO.DataObject
import com.qinqinxiaobao.report.uniplat.engine.DO.EnvDataObject
import com.qinqinxiaobao.report.uniplat.workflow.dto.WorkflowContext
class Example1 { class Example1 {
def model_name = "Example1" def model_name = "Example1"
def workflowCatalog(DataObject object, EnvDataObject env, WorkflowContext context) {
return "intent-example1"
}
def workflowTitle(DataObject object, EnvDataObject env, WorkflowContext context) {
return "数据解析测试"
}
} }
\ No newline at end of file
...@@ -1041,6 +1041,9 @@ ...@@ -1041,6 +1041,9 @@
} }
], ],
"workflow2": { "workflow2": {
"enablePlanTask": true "enablePlanTask": true,
"catalog": "{{host.invokeModelFunc('Example1', 'workflowCatalog', [object, env, workflow])}}",
"_catalog": "{{object.other.value}}_{{workflow.processName}}",
"title": "{{host.invokeModelFunc('Example1', 'workflowTitle', [object, env, workflow])}}"
} }
} }
\ No newline at end of file
...@@ -14,6 +14,10 @@ import com.qinqinxiaobao.report.uniplat.workflow.params.StartPlanTaskParam ...@@ -14,6 +14,10 @@ import com.qinqinxiaobao.report.uniplat.workflow.params.StartPlanTaskParam
class CityChange { class CityChange {
def model_name = "city_example" def model_name = "city_example"
def insert_test(ActionBehaviorContext context) {
return new BehaviorResult(0, "成功", 0)
}
def multiCascadeInput(ActionBehaviorContext context) { def multiCascadeInput(ActionBehaviorContext context) {
// 测试树 // 测试树
def treeModel = context.host.getDataModel('province') def treeModel = context.host.getDataModel('province')
......
...@@ -877,20 +877,22 @@ ...@@ -877,20 +877,22 @@
"label": "树类型", "label": "树类型",
"type": "mapping", "type": "mapping",
"mapping": "treeMapping", "mapping": "treeMapping",
"is_param": true "is_param": false
}, },
{ {
"type": "tree", "type": "tree",
"property": "province_id", "property": "province_id",
"label": "省份ID", "label": "省份ID",
"multi": true,
"treeModelName": "province_example", "treeModelName": "province_example",
"treeRootNode": "1", "default_value": "[1,3,2]",
"_treeRootNode": "1",
"required": true, "required": true,
"updator": "tree_type_updator" "_updator": "tree_type_updator"
} }
] ]
}, },
"behavior": "insert", "behavior": "insert_test",
"forward": "" "forward": ""
}, },
{ {
......
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