Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
uniplat-example
/
intent-example
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b5e28812
authored
Jun 01, 2022
by
张蕴鹏
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat(工作流):catalog,title,启动流程变动
parent
263ca1a9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
models/Example1.groovy
models/Example1.json
models/city.groovy
models/city_example.json
models/Example1.groovy
View file @
b5e28812
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
{
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
models/Example1.json
View file @
b5e28812
...
...
@@ -1041,6 +1041,9 @@
}
],
"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
models/city.groovy
View file @
b5e28812
...
...
@@ -14,6 +14,10 @@ import com.qinqinxiaobao.report.uniplat.workflow.params.StartPlanTaskParam
class
CityChange
{
def
model_name
=
"city_example"
def
insert_test
(
ActionBehaviorContext
context
)
{
return
new
BehaviorResult
(
0
,
"成功"
,
0
)
}
def
multiCascadeInput
(
ActionBehaviorContext
context
)
{
// 测试树
def
treeModel
=
context
.
host
.
getDataModel
(
'province'
)
...
...
models/city_example.json
View file @
b5e28812
...
...
@@ -877,20 +877,22 @@
"label"
:
"树类型"
,
"type"
:
"mapping"
,
"mapping"
:
"treeMapping"
,
"is_param"
:
tru
e
"is_param"
:
fals
e
},
{
"type"
:
"tree"
,
"property"
:
"province_id"
,
"label"
:
"省份ID"
,
"multi"
:
true
,
"treeModelName"
:
"province_example"
,
"treeRootNode"
:
"1"
,
"default_value"
:
"[1,3,2]"
,
"_treeRootNode"
:
"1"
,
"required"
:
true
,
"updator"
:
"tree_type_updator"
"
_
updator"
:
"tree_type_updator"
}
]
},
"behavior"
:
"insert"
,
"behavior"
:
"insert
_test
"
,
"forward"
:
""
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment