Commit 38c4accf authored by custom's avatar custom

Updates 后端开发/activiti_demo.md

Auto commit by GitBook Editor
parent a0d5436a
...@@ -45,19 +45,21 @@ import java.util.Map; ...@@ -45,19 +45,21 @@ import java.util.Map;
@Service @Service
@Transactional @Transactional
public class PrjActivitStartServiceImpl implements IActivitiCommonService public class PrjActivitStartServiceImpl implements IActivitiCommonService
{ private static final String workFlowType = "PRJ_PROJECT"; @Autowired {
private static final String workFlowType = "PRJ_PROJECT"; @Autowired
private IActivitiService activitiService; private IActivitiService activitiService;
@Autowired @Autowired
private IReProcdefService reProcdefService; private IReProcdefService reProcdefService;
@Autowired @Autowired
private PrjProjectService projectService; private PrjProjectService projectService;
@Autowired @Autowired
private PrjProjectMeetingMapper meetingMapper; private PrjProjectMeetingMapper meetingMapper;
@Override @Override
public String getWorkFlowType() { return workFlowType; } public String getWorkFlowType() { return workFlowType; }
@Override @Override
public void process(IRequest iRequest, List list, Map params) public void process(IRequest iRequest, List list, Map params)
{ ProcessInstanceCreateRequest processInstanceCreateRequest = getProcessInstanceCreateRequest((PrjProject)list.get(0),iRequest); activitiService.startProcess(iRequest, processInstanceCreateRequest); {
ProcessInstanceCreateRequest processInstanceCreateRequest = getProcessInstanceCreateRequest((PrjProject)list.get(0),iRequest); activitiService.startProcess(iRequest, processInstanceCreateRequest);
} }
private ProcessInstanceCreateRequest getProcessInstanceCreateRequest(PrjProject prjProject, IRequest iRequest) private ProcessInstanceCreateRequest getProcessInstanceCreateRequest(PrjProject prjProject, IRequest iRequest)
{ ProcessInstanceCreateRequest createRequest = new ProcessInstanceCreateRequest(); { ProcessInstanceCreateRequest createRequest = new ProcessInstanceCreateRequest();
......
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