As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public void reloadProcessByTask(final Task task) { m_processInstance = (ExecutionEntity) m_processEngine.getRuntimeService() .createExecutionQuery() .executionId(task.getExecutionId()) .singleResult(); ProcessDefinition procDef = m_processEngine.getRepositoryService() .createProcessDefinitionQuery() .id(task.getProcessDefinitionId()).singleResult(); ((ExecutionEntity) m_processInstance).setProcessDefinition((ProcessDefinitionImpl) procDef); }
<br>/** Sends an external trigger to an activity instance that is waiting inside the given execution.<br> * @param executionId id of execution to signal, cannot be null.<br> * @throws ActivitiException when no execution is found for the given executionId. <br> */<br> void signal(String executionId);<br>
<br> ProcessDefinition procDef = m_processEngine.getRepositoryService()<br> .createProcessDefinitionQuery()<br> .id(task.getProcessDefinitionId()).singleResult();<br>