Commit 22221641 authored by shyWang's avatar shyWang

PDM前端改造

模拟选人
parent 21fa7752
...@@ -6,6 +6,12 @@ import com.yonde.wfc.service.WfcProcessService; ...@@ -6,6 +6,12 @@ import com.yonde.wfc.service.WfcProcessService;
import com.yonde.wfc.vo.*; import com.yonde.wfc.vo.*;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.*; 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.ArrayList;
import java.util.HashMap; import java.util.HashMap;
...@@ -130,4 +136,16 @@ public class WfcProcessController { ...@@ -130,4 +136,16 @@ public class WfcProcessController {
} }
return ApiResult.ok((Object)null, "操作成功"); 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;
}
} }
...@@ -14,8 +14,8 @@ public class DxWfTaskOperationArgsVO implements Serializable { ...@@ -14,8 +14,8 @@ public class DxWfTaskOperationArgsVO implements Serializable {
private String operator; private String operator;
private String targetUserId; private String targetUserId;
private String id; private String id;
private Map<String, Object> participants; private Map<String, Object> participants;//选人
private Map<String, Object> variables; private Map<String, Object> variables;//流程属性
private Boolean isBefore; private Boolean isBefore;
public DxWfTaskOperationArgsVO() { public DxWfTaskOperationArgsVO() {
......
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;
}
}
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 to comment