Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5f2a2200
authored
Feb 26, 2025
by
芋道源码
Committed by
Gitee
Feb 26, 2025
Browse files
Options
Browse Files
Download
Plain Diff
!718 feat: 子流程-多实例
Merge pull request !718 from Lesan/feature/bpm-子流程
parents
de35fd0a
bad11ff2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
4 deletions
+65
-4
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
+3
-0
src/components/SimpleProcessDesignerV2/src/consts.ts
+62
-4
src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue
+0
-0
No files found.
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
View file @
5f2a2200
...
@@ -306,6 +306,9 @@ const addNode = (type: number) => {
...
@@ -306,6 +306,9 @@ const addNode = (type: number) => {
},
},
timeoutSetting
:
{
timeoutSetting
:
{
enable
:
false
enable
:
false
},
multiInstanceSetting
:
{
enable
:
false
}
}
}
}
}
}
...
...
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
5f2a2200
...
@@ -821,20 +821,78 @@ export type ChildProcessSetting = {
...
@@ -821,20 +821,78 @@ export type ChildProcessSetting = {
skipStartUserNode
:
boolean
,
skipStartUserNode
:
boolean
,
startUserSetting
:
StartUserSetting
,
startUserSetting
:
StartUserSetting
,
timeoutSetting
:
TimeoutSetting
,
timeoutSetting
:
TimeoutSetting
,
multiInstanceSetting
:
MultiInstanceSetting
,
}
}
export
type
IOParameter
=
{
export
type
IOParameter
=
{
source
:
string
source
:
string
sourceExpression
:
string
target
:
string
target
:
string
targetExpression
:
string
}
}
export
type
StartUserSetting
=
{
export
type
StartUserSetting
=
{
type
:
number
type
:
ChildProcessStartUserTypeEnum
formField
?:
string
formField
?:
string
emptyType
?:
number
emptyType
?:
ChildProcessStartUserEmptyTypeEnum
}
}
export
type
TimeoutSetting
=
{
export
type
TimeoutSetting
=
{
enable
:
boolean
,
enable
:
boolean
,
type
?:
DelayTypeEnum
,
type
?:
DelayTypeEnum
,
timeExpression
?:
string
,
timeExpression
?:
string
,
}
}
export
type
MultiInstanceSetting
=
{
enable
:
boolean
,
sequential
?:
boolean
,
completeRatio
?:
number
,
sourceType
?:
ChildProcessMultiInstanceSourceTypeEnum
,
source
?:
string
,
}
export
enum
ChildProcessStartUserTypeEnum
{
/**
* 同主流程发起人
*/
MAIN_PROCESS_START_USER
=
1
,
/**
* 表单
*/
FROM_FORM
=
2
,
}
export
const
CHILD_PROCESS_START_USER_TYPE
=
[
{
label
:
'同主流程发起人'
,
value
:
ChildProcessStartUserTypeEnum
.
MAIN_PROCESS_START_USER
},
{
label
:
'表单'
,
value
:
ChildProcessStartUserTypeEnum
.
FROM_FORM
}
]
export
enum
ChildProcessStartUserEmptyTypeEnum
{
/**
* 同主流程发起人
*/
MAIN_PROCESS_START_USER
=
1
,
/**
* 子流程管理员
*/
CHILD_PROCESS_ADMIN
=
2
,
/**
* 主流程管理员
*/
MAIN_PROCESS_ADMIN
=
3
,
}
export
const
CHILD_PROCESS_START_USER_EMPTY_TYPE
=
[
{
label
:
'同主流程发起人'
,
value
:
ChildProcessStartUserEmptyTypeEnum
.
MAIN_PROCESS_START_USER
},
{
label
:
'子流程管理员'
,
value
:
ChildProcessStartUserEmptyTypeEnum
.
CHILD_PROCESS_ADMIN
},
{
label
:
'主流程管理员'
,
value
:
ChildProcessStartUserEmptyTypeEnum
.
MAIN_PROCESS_ADMIN
}
]
export
enum
ChildProcessMultiInstanceSourceTypeEnum
{
/**
* 固定数量
*/
FIXED_QUANTITY
=
1
,
/**
* 数字表单
*/
DIGITAL_FORM
=
2
,
/**
* 多项表单
*/
MULTI_FORM
=
3
,
}
export
const
CHILD_PROCESS_MULTI_INSTANCE_SOURCE_TYPE
=
[
{
label
:
'固定数量'
,
value
:
ChildProcessMultiInstanceSourceTypeEnum
.
FIXED_QUANTITY
},
{
label
:
'数字表单'
,
value
:
ChildProcessMultiInstanceSourceTypeEnum
.
DIGITAL_FORM
},
{
label
:
'多项表单'
,
value
:
ChildProcessMultiInstanceSourceTypeEnum
.
MULTI_FORM
}
]
src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue
View file @
5f2a2200
This diff is collapsed.
Click to expand it.
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