update - 调整具体的选人的值
This commit is contained in:
parent
391407933a
commit
2bb77c752d
@ -58,7 +58,7 @@ public class BpmnJsonNodeProperty {
|
||||
* [{"assignee":"111","assigneeType": "", "assignerName":"wangli", "personId": "", "tenantId":"296", "ouId":""}]
|
||||
*/
|
||||
@ApiModelProperty(value = "任务节点: 审批人指定的具体值")
|
||||
private List<String> specifyValue;
|
||||
private String specifyValue;
|
||||
//************* 审批人指定End **************//
|
||||
|
||||
|
||||
|
||||
@ -184,12 +184,12 @@ public final class BpmnJsonConverterUtil {
|
||||
// 创建固定的开始节点
|
||||
mainProcess.addFlowElement(convertJsonToElement(StartEvent.class, mainProcess));
|
||||
|
||||
// 解析前端传入的模型设计 json
|
||||
List<String> lastNodeIds = create(bpmnJsonNode, mainProcess, bpmnModel, START_EVENT_ID);
|
||||
|
||||
// 创建固定的结束节点
|
||||
mainProcess.addFlowElement(convertJsonToElement(EndEvent.class, mainProcess));
|
||||
|
||||
// 解析前端传入的模型设计 json
|
||||
List<String> lastNodeIds = create(bpmnJsonNode, mainProcess, bpmnModel, START_EVENT_ID);
|
||||
|
||||
if (CollectionUtils.isEmpty(lastNodeIds)) {
|
||||
throw new WorkflowEngineException(CONVERTOR_COMMON_ERROR, "未找到链接结束节点的节点数据");
|
||||
}
|
||||
@ -444,30 +444,38 @@ public final class BpmnJsonConverterUtil {
|
||||
Gateway gateway = (Gateway) flowElement;
|
||||
for (BpmnJsonNode branch : bpmnJsonNode.getBranches()) {
|
||||
// branch == node_condition
|
||||
BpmnJsonNode nextJsonNode = Objects.isNull(branch.getChildren()) ? bpmnJsonNode.getChildren() :
|
||||
branch.getChildren();
|
||||
if (Objects.nonNull(nextJsonNode) && Objects.nonNull(nextJsonNode.getType()) && !Objects.equals(NODE_EMPTY, nextJsonNode.getType())) {
|
||||
BpmnJsonNode nextJsonNode =
|
||||
(Objects.isNull(branch.getChildren()) || Objects.isNull(branch.getChildren().getType()) || Objects.equals(NODE_EMPTY, branch.getChildren().getType()))
|
||||
? bpmnJsonNode.getChildren() : branch.getChildren();
|
||||
|
||||
if (Objects.isNull(nextJsonNode) || Objects.isNull(nextJsonNode.getId()) || Objects.equals(NODE_EMPTY
|
||||
, nextJsonNode.getType())) {
|
||||
BpmnJsonNode tempEndNode = new BpmnJsonNode();
|
||||
tempEndNode.setIncoming(Lists.newArrayList(gateway.getId()));
|
||||
tempEndNode.setId(END_EVENT_ID);
|
||||
nextJsonNode = tempEndNode;
|
||||
} else {
|
||||
nextJsonNode.setIncoming(Lists.newArrayList(gateway.getId()));
|
||||
|
||||
// 将 node_condition 放入计算节点的上级属性中,方便顺序流转换器对条件进行处理
|
||||
nextJsonNode.setPreJsonNode(branch);
|
||||
SequenceFlow sequenceFlow = (SequenceFlow) convertJsonToElement(SequenceFlow.class, nextJsonNode,
|
||||
mainProcess);
|
||||
mainProcess.addFlowElement(sequenceFlow);
|
||||
|
||||
// 设置网关默认流
|
||||
if (Objects.nonNull(branch.getProperty()) && Boolean.TRUE.equals(branch.getProperty().getDefaultBranch())) {
|
||||
// 如果是默认流, 以防止前端输入错误, 强制置空
|
||||
sequenceFlow.setConditionExpression(null);
|
||||
gateway.setDefaultFlow(sequenceFlow.getId());
|
||||
}
|
||||
|
||||
if (Objects.nonNull(branch.getChildren()) && StringUtils.hasLength(branch.getChildren().getId())
|
||||
&& !Objects.equals(NODE_EMPTY, branch.getChildren().getType())) {
|
||||
branchLastNodeIds.addAll(create(branch.getChildren(), mainProcess, bpmnModel));
|
||||
}
|
||||
}
|
||||
SequenceFlow sequenceFlow = (SequenceFlow) convertJsonToElement(SequenceFlow.class, nextJsonNode,
|
||||
mainProcess);
|
||||
mainProcess.addFlowElement(sequenceFlow);
|
||||
|
||||
// 设置网关默认流
|
||||
if (Objects.nonNull(branch.getProperty()) && Boolean.TRUE.equals(branch.getProperty().getDefaultBranch())) {
|
||||
// 如果是默认流, 以防止前端输入错误, 强制置空
|
||||
sequenceFlow.setConditionExpression(null);
|
||||
gateway.setDefaultFlow(sequenceFlow.getId());
|
||||
}
|
||||
|
||||
if (Objects.nonNull(branch.getChildren()) && StringUtils.hasLength(branch.getChildren().getId())
|
||||
&& !Objects.equals(NODE_EMPTY, branch.getChildren().getType())) {
|
||||
branchLastNodeIds.addAll(create(branch.getChildren(), mainProcess, bpmnModel));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -216,7 +216,7 @@ public final class BpmnMetaParserHelper {
|
||||
return defaultValid(userTask, CONFIG_APPROVER_SPECIFY)
|
||||
.map(element -> StringUtils.hasLength(element.getElementText())
|
||||
? element.getElementText()
|
||||
: "{}");
|
||||
: "[]");
|
||||
}
|
||||
|
||||
public static Optional<ApproverEmptyHandleTypeEnum> getApproverEmptyHandleType(UserTask userTask) {
|
||||
|
||||
@ -6,7 +6,6 @@ import cn.axzo.workflow.common.enums.BpmnFlowNodeType;
|
||||
import cn.axzo.workflow.common.model.request.bpmn.BpmnButtonConf;
|
||||
import cn.axzo.workflow.common.model.request.bpmn.BpmnJsonNode;
|
||||
import cn.axzo.workflow.common.model.request.bpmn.BpmnJsonNodeProperty;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import org.flowable.bpmn.model.ExtensionAttribute;
|
||||
import org.flowable.bpmn.model.ExtensionElement;
|
||||
import org.flowable.bpmn.model.FlowableListener;
|
||||
@ -193,7 +192,7 @@ public class UserTaskJsonConverter extends AbstractBpmnJsonConverter<UserTask> {
|
||||
approverSpecifyDescAttribute.setValue("审批人指定");
|
||||
approverSpecifyElement.addAttribute(approverSpecifyDescAttribute);
|
||||
// 审批人指定的具体值
|
||||
approverSpecifyElement.setElementText(JSON.toJSONString(property.getSpecifyValue()));
|
||||
approverSpecifyElement.setElementText(property.getSpecifyValue());
|
||||
userTask.addExtensionElement(approverSpecifyElement);
|
||||
|
||||
// 多人审批时审批模式
|
||||
|
||||
@ -128,6 +128,7 @@ public class EngineExecutionStartListener implements ExecutionListener {
|
||||
if (!CollectionUtils.isEmpty(assigners)) {
|
||||
return;
|
||||
}
|
||||
log.info("当前节点: id: {}, name: {} 审批人为空", userTask.getId(), userTask.getName());
|
||||
getApproverEmptyHandleType(userTask).ifPresent(type -> {
|
||||
switch (type) {
|
||||
// 自动通过和拒绝, 统一由 cn.axzo.workflow.server.controller.listener.task.AutoOperatorEventListener 来处理
|
||||
|
||||
@ -22,6 +22,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static cn.axzo.workflow.core.common.enums.BpmnErrorCode.CONVERTOR_META_DATA_FORMAT_ERROR;
|
||||
|
||||
@ -73,7 +74,9 @@ public abstract class AbstractBpmnTaskAssigneeSelector implements BpmnTaskAssign
|
||||
// 默认解析格式:[{"name":"预算员", "value":"xxxx"}]
|
||||
try {
|
||||
return BpmnMetaParserHelper.getApproverSpecifyValue(userTask)
|
||||
.map(s -> JSON.parseArray(s, String.class))
|
||||
.map(value -> JSON.parseArray(value, String.class).stream().map(JSON::parseObject)
|
||||
.map(i -> i.getString("value"))
|
||||
.collect(Collectors.toList()))
|
||||
.orElse(Collections.emptyList());
|
||||
} catch (Exception e) {
|
||||
throw new WorkflowEngineException(CONVERTOR_META_DATA_FORMAT_ERROR, "AbstractBpmnTaskAssigneeSelector" +
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,91 +1,766 @@
|
||||
{
|
||||
"name": "考勤补卡",
|
||||
"category": 1,
|
||||
"remark": "考勤补卡",
|
||||
"workspaceId": null,
|
||||
"jsonModel": {
|
||||
"node": {
|
||||
"id": "NODE_STARTER",
|
||||
"parentId": null,
|
||||
"type": "NODE_STARTER",
|
||||
"name": "发起人",
|
||||
"desc": "任何人",
|
||||
"props": {
|
||||
"assignedUser": [],
|
||||
"formPerms": []
|
||||
},
|
||||
"children": {
|
||||
"id": "node_068743086299",
|
||||
"id": "node_477189959824",
|
||||
"parentId": "NODE_STARTER",
|
||||
"property": {},
|
||||
"type": "NODE_EXCLUSIVE_GATEWAY",
|
||||
"name": "条件分支",
|
||||
"children": {
|
||||
"id": "node_068743083177",
|
||||
"parentId": "node_068743086299",
|
||||
"id": "node_477189952742",
|
||||
"parentId": "node_477189959824",
|
||||
"type": "NODE_EMPTY",
|
||||
"children": {}
|
||||
"name": null,
|
||||
"children": {
|
||||
"id": null,
|
||||
"parentId": null,
|
||||
"type": null,
|
||||
"name": null,
|
||||
"children": null,
|
||||
"branches": null,
|
||||
"property": null
|
||||
},
|
||||
"branches": null,
|
||||
"property": null
|
||||
},
|
||||
"branches": [
|
||||
{
|
||||
"id": "node_068743083028",
|
||||
"parentId": "node_068743086299",
|
||||
"id": "node_477189959669",
|
||||
"parentId": "node_477189959824",
|
||||
"type": "NODE_CONDITION",
|
||||
"property": {
|
||||
"groupsType": "OR",
|
||||
"groups": [
|
||||
{
|
||||
"conditionsType": "AND",
|
||||
"conditions": [
|
||||
{
|
||||
"name": "1",
|
||||
"code": "1",
|
||||
"type": "string",
|
||||
"defaultValues": [],
|
||||
"defaultValue": "1",
|
||||
"options": [
|
||||
"name": "条件1",
|
||||
"children": {
|
||||
"id": "node_477505273489",
|
||||
"parentId": "node_477189959669",
|
||||
"type": "NODE_EXCLUSIVE_GATEWAY",
|
||||
"name": "条件分支",
|
||||
"children": {
|
||||
"id": "node_477505288804",
|
||||
"parentId": "node_477505273489",
|
||||
"type": "NODE_EMPTY",
|
||||
"name": null,
|
||||
"children": {
|
||||
"id": "node_477715785687",
|
||||
"parentId": "node_477505288804",
|
||||
"type": "NODE_TASK",
|
||||
"name": "审批节点",
|
||||
"children": {
|
||||
"id": null,
|
||||
"parentId": null,
|
||||
"type": null,
|
||||
"name": null,
|
||||
"children": null,
|
||||
"branches": null,
|
||||
"property": null
|
||||
},
|
||||
"branches": null,
|
||||
"property": {
|
||||
"approvalMethod": "human",
|
||||
"approverScope": "projectWorkspace",
|
||||
"approverSpecify": "identity",
|
||||
"specifyValue": [
|
||||
"[{\"name\":\"代班长\",\"value\":\"AGENT_LEADER\"},{\"name\":\"项目部管理员\",\"value\":\"BU_ADMIN\"},{\"name\":\"参建单位负责人\",\"value\":\"ORG_ADMIN\"},{\"name\":\"班组长\",\"value\":\"TEAM_LEADER\"}]"
|
||||
],
|
||||
"isMultiTask": true,
|
||||
"multiMode": "AND",
|
||||
"approverEmptyHandleType": "autoPassed",
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": {
|
||||
"initiator": [
|
||||
{
|
||||
"name": "",
|
||||
"value": ""
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"operator": "contains"
|
||||
"current": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
}
|
||||
],
|
||||
"history": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"carbonCopy": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"defaultBranch": null,
|
||||
"groups": null,
|
||||
"groupsType": "or",
|
||||
"formKey": null
|
||||
}
|
||||
},
|
||||
"branches": null,
|
||||
"property": null
|
||||
},
|
||||
"branches": [
|
||||
{
|
||||
"id": "node_477505281704",
|
||||
"parentId": "node_477505273489",
|
||||
"type": "NODE_CONDITION",
|
||||
"name": "条件1",
|
||||
"children": {
|
||||
"id": "node_477663454558",
|
||||
"parentId": "node_477505281704",
|
||||
"type": "NODE_TASK",
|
||||
"name": "审批节点",
|
||||
"children": {
|
||||
"id": null,
|
||||
"parentId": null,
|
||||
"type": null,
|
||||
"name": null,
|
||||
"children": null,
|
||||
"branches": null,
|
||||
"property": null
|
||||
},
|
||||
"branches": null,
|
||||
"property": {
|
||||
"approvalMethod": "human",
|
||||
"approverScope": "projectWorkspace",
|
||||
"approverSpecify": "position",
|
||||
"specifyValue": [
|
||||
"[{\"name\":\"施工单位/项目经理\",\"value\":\"coTheprojectmanager\"},{\"name\":\"施工单位/项目执行经理\",\"value\":\"coProjectimplementationmanager\"},{\"name\":\"施工单位/项目书记\",\"value\":\"coSecretaryoftheproject\"},{\"name\":\"施工单位/项目生产副经理\",\"value\":\"coProductionvicemanageroftheproject\"},{\"name\":\"施工单位/项目商务副经理\",\"value\":\"coTheprojectbusinessassistantmanager\"},{\"name\":\"施工单位/商务部主管\",\"value\":\"coTheMinistryofCommercemanager\"},{\"name\":\"施工单位/项目技术总工\",\"value\":\"coTechnicalprojectgeneral\"},{\"name\":\"施工单位/技术员\",\"value\":\"coThetechnician\"},{\"name\":\"施工单位/资料员\",\"value\":\"coresposible\"},{\"name\":\"施工单位/测量主管\",\"value\":\"coMeasuringhead\"},{\"name\":\"施工单位/质检员\",\"value\":\"coQualitativecheckmember\"},{\"name\":\"施工单位/安全员\",\"value\":\"cosafe\"},{\"name\":\"施工单位/安全部主管(部长、经理)\",\"value\":\"coHomelandsecuritymanager\"},{\"name\":\"施工单位/施工员\",\"value\":\"coThebuilder\"},{\"name\":\"施工单位/工程部部主管(部长、经理)\",\"value\":\"coEngineeringmanager\"},{\"name\":\"施工单位/计划管理员\",\"value\":\"coPlanadministrator\"}]"
|
||||
],
|
||||
"isMultiTask": true,
|
||||
"multiMode": "AND",
|
||||
"approverEmptyHandleType": "autoPassed",
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": {
|
||||
"initiator": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"current": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
}
|
||||
],
|
||||
"history": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
}
|
||||
],
|
||||
"carbonCopy": [
|
||||
{
|
||||
"order": 1,
|
||||
"btnKey": "BPMN_APPROVE",
|
||||
"btnName": "同意",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 2,
|
||||
"btnKey": "BPMN_REJECT",
|
||||
"btnName": "拒绝",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 3,
|
||||
"btnKey": "BPMN_REVOCATION",
|
||||
"btnName": "撤回",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 4,
|
||||
"btnKey": "BPMN_TRANSFER",
|
||||
"btnName": "转办",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 5,
|
||||
"btnKey": "BPMN_COUNTERSIGN",
|
||||
"btnName": "加签",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 6,
|
||||
"btnKey": "BPMN_COMMENT",
|
||||
"btnName": "评论",
|
||||
"checked": true,
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"order": 7,
|
||||
"btnKey": "BPMN_ROLLBACK",
|
||||
"btnName": "回退",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"order": 8,
|
||||
"btnKey": "BPMN_COPY",
|
||||
"btnName": "抄送",
|
||||
"checked": false,
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"defaultBranch": null,
|
||||
"groups": null,
|
||||
"groupsType": "or",
|
||||
"formKey": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"branches": null,
|
||||
"property": {
|
||||
"approvalMethod": null,
|
||||
"approverScope": null,
|
||||
"approverSpecify": null,
|
||||
"specifyValue": null,
|
||||
"isMultiTask": true,
|
||||
"multiMode": null,
|
||||
"approverEmptyHandleType": null,
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": null,
|
||||
"defaultBranch": false,
|
||||
"groups": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"type": "number",
|
||||
"code": "subcontractAuditFlag",
|
||||
"operator": "eq",
|
||||
"defaultValue": "1",
|
||||
"defaultValues": [],
|
||||
"leftOperator": null,
|
||||
"rightOperator": null,
|
||||
"leftValue": null,
|
||||
"rightValue": null
|
||||
}
|
||||
],
|
||||
"conditionsType": "AND"
|
||||
}
|
||||
],
|
||||
"groupsType": "OR",
|
||||
"formKey": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "node_477505288658",
|
||||
"parentId": "node_477505273489",
|
||||
"type": "NODE_CONDITION",
|
||||
"name": "默认分支",
|
||||
"children": null,
|
||||
"branches": null,
|
||||
"property": {
|
||||
"approvalMethod": null,
|
||||
"approverScope": null,
|
||||
"approverSpecify": null,
|
||||
"specifyValue": null,
|
||||
"isMultiTask": true,
|
||||
"multiMode": null,
|
||||
"approverEmptyHandleType": null,
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": null,
|
||||
"defaultBranch": true,
|
||||
"groups": [
|
||||
{
|
||||
"conditions": [],
|
||||
"conditionsType": "AND"
|
||||
}
|
||||
],
|
||||
"groupsType": "OR",
|
||||
"formKey": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"defaultBranch": false
|
||||
"property": {
|
||||
"approvalMethod": null,
|
||||
"approverScope": null,
|
||||
"approverSpecify": null,
|
||||
"specifyValue": null,
|
||||
"isMultiTask": true,
|
||||
"multiMode": null,
|
||||
"approverEmptyHandleType": null,
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": null,
|
||||
"defaultBranch": null,
|
||||
"groups": null,
|
||||
"groupsType": "or",
|
||||
"formKey": null
|
||||
}
|
||||
},
|
||||
"name": "条件1",
|
||||
"children": {}
|
||||
},
|
||||
{
|
||||
"id": "node_068743087250",
|
||||
"parentId": "node_068743086299",
|
||||
"type": "NODE_CONDITION",
|
||||
"branches": null,
|
||||
"property": {
|
||||
"groupsType": "OR",
|
||||
"approvalMethod": null,
|
||||
"approverScope": null,
|
||||
"approverSpecify": null,
|
||||
"specifyValue": null,
|
||||
"isMultiTask": true,
|
||||
"multiMode": null,
|
||||
"approverEmptyHandleType": null,
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": null,
|
||||
"defaultBranch": false,
|
||||
"groups": [
|
||||
{
|
||||
"conditionsType": "AND",
|
||||
"conditions": []
|
||||
"conditions": [
|
||||
{
|
||||
"type": "number",
|
||||
"code": "applyType",
|
||||
"operator": "eq",
|
||||
"defaultValue": "2",
|
||||
"defaultValues": [],
|
||||
"leftOperator": null,
|
||||
"rightOperator": null,
|
||||
"leftValue": null,
|
||||
"rightValue": null
|
||||
}
|
||||
],
|
||||
"conditionsType": "AND"
|
||||
}
|
||||
],
|
||||
"defaultBranch": true
|
||||
},
|
||||
"name": "默认分支"
|
||||
"groupsType": "OR",
|
||||
"formKey": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "node_477189958725",
|
||||
"parentId": "node_477189959824",
|
||||
"type": "NODE_CONDITION",
|
||||
"name": "默认分支",
|
||||
"children": null,
|
||||
"branches": null,
|
||||
"property": {
|
||||
"approvalMethod": null,
|
||||
"approverScope": null,
|
||||
"approverSpecify": null,
|
||||
"specifyValue": null,
|
||||
"isMultiTask": true,
|
||||
"multiMode": null,
|
||||
"approverEmptyHandleType": null,
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": null,
|
||||
"defaultBranch": true,
|
||||
"groups": [
|
||||
{
|
||||
"conditions": [],
|
||||
"conditionsType": "AND"
|
||||
}
|
||||
],
|
||||
"groupsType": "OR",
|
||||
"formKey": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"property": {
|
||||
"approvalMethod": null,
|
||||
"approverScope": null,
|
||||
"approverSpecify": null,
|
||||
"specifyValue": null,
|
||||
"isMultiTask": true,
|
||||
"multiMode": null,
|
||||
"approverEmptyHandleType": null,
|
||||
"fieldPermission": null,
|
||||
"buttonPermission": null,
|
||||
"defaultBranch": null,
|
||||
"groups": null,
|
||||
"groupsType": "or",
|
||||
"formKey": null
|
||||
}
|
||||
},
|
||||
"branches": null,
|
||||
"property": null
|
||||
},
|
||||
"noticeConf": {
|
||||
"notice": {
|
||||
"noticeMessageId": 590,
|
||||
"viewJson": "{\"env\":\"[dev]\",\"relationId\":590,\"contactUser\":\"宋远伦\",\"moduleId\":24,\"moduleName\":\"项目公告\",\"receiveIdentityType\":3,\"bizType\":1,\"title\":\"补卡申请已完成审核\",\"content\":\"您提交的${workspaceName}${initiatorUserName}工人的考勤补卡申请已审核${processResult},点击查看详情\",\"routers\":[],\"createAt\":1701334576000,\"updateAt\":1701350719000}"
|
||||
"noticeMessageId": "590",
|
||||
"viewJson": "{\"env\":\"[test]\",\"relationId\":590,\"contactUser\":null,\"moduleId\":24,\"moduleName\":\"项目公告\",\"receiveIdentityType\":3,\"bizType\":1,\"title\":\"补卡申请已完成审核\",\"content\":\"您提交的${workspaceName}${initiatorUserName}工人的考勤补卡申请已审核${processResult},点击查看详情\",\"routers\":[],\"createAt\":1701694503000,\"updateAt\":1701694503000}"
|
||||
},
|
||||
"pending": {
|
||||
"pendingMessageId": "ae537bd074fd417bb5f223abffa9ab4e",
|
||||
"viewJson": "{\"templateName\":\"逾期未发薪整改\",\"templateCode\":\"ae537bd074fd417bb5f223abffa9ab4e\",\"category\":\"BIZ_PENDING_MESSAGE\",\"title\":\"逾期未发薪电子整改单\",\"content\":\"${content}\",\"groupNodeNamePaths\":[\"CMS待办中心/整改待办/逾期预警\"],\"status\":\"ENABLE\"}"
|
||||
"pendingMessageId": "1faa3594b8314fd982daf337d9d9ffa6",
|
||||
"viewJson": "{\"templateName\":\"考勤补卡申请待办\",\"templateCode\":\"1faa3594b8314fd982daf337d9d9ffa6\",\"category\":\"APPROVAL_PENDING_MESSAGE\",\"title\":\"工人考勤补卡审核\",\"content\":\"你有新的待审核工人考勤补卡申请,点击查看详情\",\"groupNodeNamePaths\":[\"APP管理端待办/入驻管理/进出场打卡\",\"APP工人端待办/考勤管理/出场打卡\"],\"status\":\"ENABLE\"}"
|
||||
},
|
||||
"sms": {
|
||||
"smsId": "",
|
||||
"viewJson": ""
|
||||
"viewJson": null
|
||||
}
|
||||
},
|
||||
"buttonConf": {
|
||||
@ -324,11 +999,20 @@
|
||||
},
|
||||
"fieldConf": [
|
||||
{
|
||||
"name": "1",
|
||||
"code": "1",
|
||||
"type": "string",
|
||||
"defaultValues": [],
|
||||
"defaultValue": "",
|
||||
"code": "applyType",
|
||||
"name": "项目/班组发起",
|
||||
"type": "number",
|
||||
"options": [
|
||||
{
|
||||
"name": "",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": "subcontractAuditFlag",
|
||||
"name": "是否需分包审核",
|
||||
"type": "number",
|
||||
"options": [
|
||||
{
|
||||
"name": "",
|
||||
@ -338,7 +1022,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"name": "111",
|
||||
"category": 20,
|
||||
"remark": ""
|
||||
"id": "202312042122000000000"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user