Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杜科
BasicAPI
Commits
22221641
Commit
22221641
authored
Apr 25, 2023
by
shyWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDM前端改造
模拟选人
parent
21fa7752
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
2 deletions
+134
-2
WfcProcessController.java
src/com/yonde/wfc/controller/WfcProcessController.java
+18
-0
DxWfTaskOperationArgsVO.java
src/com/yonde/wfc/vo/DxWfTaskOperationArgsVO.java
+2
-2
DxWfTeamVO.java
src/com/yonde/wfc/vo/DxWfTeamVO.java
+114
-0
No files found.
src/com/yonde/wfc/controller/WfcProcessController.java
View file @
22221641
...
...
@@ -6,6 +6,12 @@ import com.yonde.wfc.service.WfcProcessService;
import
com.yonde.wfc.vo.*
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.*
;
import
wt.clients.workflow.definer.WfAssignedActivityRoleSetup
;
import
wt.workflow.engine.ProcessData
;
import
wt.workflow.engine.WfActivity
;
import
wt.workflow.engine.WfEngineServerHelper
;
import
wt.workflow.engine.WfProcess
;
import
wt.workflow.work.WfAssignedActivity
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
@@ -130,4 +136,16 @@ public class WfcProcessController {
}
return
ApiResult
.
ok
((
Object
)
null
,
"操作成功"
);
}
@GetMapping
({
"/activity/teamInfoList"
})
//@ApiOperation("查询可设置的环节参与人信息")
public
List
<
DxWfTeamVO
>
getNextTeamParticipantSetList
(
@RequestParam
String
procDefId
,
@RequestParam
String
procInstId
,
@RequestParam
String
taskKey
,
@RequestParam
(
defaultValue
=
""
,
required
=
false
)
String
selectRoute
)
{
List
<
DxWfTeamVO
>
teamVOS
=
new
ArrayList
<
DxWfTeamVO
>();
try
{
teamVOS
=
WfcProcessService
.
getNextTeamParticipantSetList
(
taskKey
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
teamVOS
;
}
}
src/com/yonde/wfc/vo/DxWfTaskOperationArgsVO.java
View file @
22221641
...
...
@@ -14,8 +14,8 @@ public class DxWfTaskOperationArgsVO implements Serializable {
private
String
operator
;
private
String
targetUserId
;
private
String
id
;
private
Map
<
String
,
Object
>
participants
;
private
Map
<
String
,
Object
>
variables
;
private
Map
<
String
,
Object
>
participants
;
//选人
private
Map
<
String
,
Object
>
variables
;
//流程属性
private
Boolean
isBefore
;
public
DxWfTaskOperationArgsVO
()
{
...
...
src/com/yonde/wfc/vo/DxWfTeamVO.java
0 → 100644
View file @
22221641
package
com
.
yonde
.
wfc
.
vo
;
import
org.apache.commons.lang.math.RandomUtils
;
import
wt.project.Role
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Locale
;
public
class
DxWfTeamVO
implements
Serializable
{
private
String
id
;
private
String
name
;
private
String
displayName
;
private
String
routerVariableName
;
private
Object
routerVariableValue
=
new
ArrayList
();
private
Boolean
required
;
private
Boolean
multiple
=
true
;
private
String
scope
=
"ALL"
;
private
List
<
String
>
scopeValues
=
new
ArrayList
();
private
Boolean
allowEdit
;
public
DxWfTeamVO
()
{
}
public
DxWfTeamVO
(
Role
role
,
boolean
isMust
)
{
this
.
id
=
RandomUtils
.
nextLong
()+
""
;
this
.
name
=
role
.
getDisplay
(
Locale
.
ENGLISH
).
toUpperCase
();
this
.
displayName
=
role
.
getDisplay
(
Locale
.
CHINA
);
this
.
routerVariableName
=
this
.
name
;
this
.
required
=
isMust
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getDisplayName
()
{
return
displayName
;
}
public
void
setDisplayName
(
String
displayName
)
{
this
.
displayName
=
displayName
;
}
public
String
getRouterVariableName
()
{
return
routerVariableName
;
}
public
void
setRouterVariableName
(
String
routerVariableName
)
{
this
.
routerVariableName
=
routerVariableName
;
}
public
Object
getRouterVariableValue
()
{
return
routerVariableValue
;
}
public
void
setRouterVariableValue
(
Object
routerVariableValue
)
{
this
.
routerVariableValue
=
routerVariableValue
;
}
public
Boolean
getRequired
()
{
return
required
;
}
public
void
setRequired
(
Boolean
required
)
{
this
.
required
=
required
;
}
public
Boolean
getMultiple
()
{
return
multiple
;
}
public
void
setMultiple
(
Boolean
multiple
)
{
this
.
multiple
=
multiple
;
}
public
String
getScope
()
{
return
scope
;
}
public
void
setScope
(
String
scope
)
{
this
.
scope
=
scope
;
}
public
List
<
String
>
getScopeValues
()
{
return
scopeValues
;
}
public
void
setScopeValues
(
List
<
String
>
scopeValues
)
{
this
.
scopeValues
=
scopeValues
;
}
public
Boolean
getAllowEdit
()
{
return
allowEdit
;
}
public
void
setAllowEdit
(
Boolean
allowEdit
)
{
this
.
allowEdit
=
allowEdit
;
}
}
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