Java Code Examples for org.activiti.engine.repository.ProcessDefinitionQuery#processDefinitionId()
The following examples show how to use
org.activiti.engine.repository.ProcessDefinitionQuery#processDefinitionId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HistoryProcessInstanceController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 2
Source File: ExecutionController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 3
Source File: HistoryProcessInstanceController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 4
Source File: ExecutionController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 5
Source File: ProcessInstanceManagerController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 6
Source File: HistoryProcessInstanceController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 7
Source File: ExecutionController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 8
Source File: ProcessInstanceManagerController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 9
Source File: HistoryProcessInstanceController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 10
Source File: ExecutionController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 11
Source File: ProcessInstanceManagerController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 12
Source File: HistoryProcessInstanceController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 13
Source File: ExecutionController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }
Example 14
Source File: ProcessInstanceManagerController.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
/** * 流程定义对象缓存 * * @param definitionMap * @param processDefinitionId */ private void definitionCache(Map<String, ProcessDefinition> definitionMap, String processDefinitionId) { if (definitionMap.get(processDefinitionId) == null) { ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery(); processDefinitionQuery.processDefinitionId(processDefinitionId); ProcessDefinition processDefinition = processDefinitionQuery.singleResult(); // 放入缓存 definitionMap.put(processDefinitionId, processDefinition); } }