| | |
| | | import org.flowable.engine.runtime.ProcessInstance; |
| | | import org.flowable.task.api.Task; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springblade.mdm.flow.constants.FlowContants; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | Map<String, Object> vars = runtimeService.getVariables(processInstanceId); |
| | | |
| | | programProperties.setTitle(String.valueOf(vars.get(FlowContants.TITLE))); |
| | | programProperties.setDrawingNo(String.valueOf(vars.get(FlowContants.DRAWING_NO))); |
| | | programProperties.setDrawingNoEdition(String.valueOf(vars.get(FlowContants.DRAWING_NO_EDITION))); |
| | | programProperties.setProductModel(String.valueOf(vars.get(FlowContants.PRODUCT_MODEL))); |
| | |
| | | |
| | | programProperties.setCraftEdition(String.valueOf(vars.get(FlowContants.CRAFT_EDITION))); |
| | | programProperties.setHasCuredProgram(String.valueOf(vars.get(FlowContants.HAS_CURED_PROGRAM))); |
| | | programProperties.setIsProcessEditionSame(String.valueOf(vars.get(FlowContants.IS_PROCESS_EDITION_SAME))); |
| | | |
| | | if(vars.containsKey(FlowContants.CURED_NODE_ID)){ |
| | | programProperties.setCuredNodeId(Func.toLong(vars.get(FlowContants.CURED_NODE_ID))); |
| | | } |
| | | |
| | | ProcessInstance processInstance = runtimeService.createProcessInstanceQuery() |
| | | .processInstanceId(processInstanceId) |