06-15-2012 12:12 PM
06-18-2012 04:28 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definition"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="myProcDef/v3">
06-18-2012 07:58 AM
06-18-2012 09:06 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="RunReportRequests">
<process id="RunReportRequests_ImmediateExecution" name="RunReportRequests_ImmediateExecution">
<documentation>$Revision: 1.4 $</documentation>
<startEvent id="startevent1" name="Start"></startEvent>
…
ProcessEngine processEngine = WfEngineManager.getProcessEngineConnection("MyWFengine);
HistoricProcessInstance processInfo = processEngine.getHistoryService().createHistoricDetailQuery().processInstanceId( processInstanceId ).singleResult();
ReadOnlyProcessDefinition processDefinition = (ReadOnlyProcessDefinition ) processEngine.getRepositoryService().createProcessDefinitionQuery().processDefinitionId( processInfo.getProcessDefinitionId() ).singleResult();
LOG.info( "ProcessDefinition ID = " + processDefinition.getId() + "; Name = " + processDefinition.getName() + "; Description (version) = " + "; Description (version) = " );
06-18-2012 09:15 AM
06-19-2012 01:45 AM
org.activiti.engine.impl.db.DbSqlSession.selectList(String statement, Object parameter, Page page)
loadedObjects = sqlSession.selectList(statement, parameter); //Call to org.apache.ibatis.session.SqlSession
returned my process definition with null properties collection, which explains why the "documentation" property is also null.06-22-2012 07:14 AM
06-22-2012 08:39 AM
ReadOnlyProcessDefinition processDefinition = (ReadOnlyProcessDefinition ) processEngine.getRepositoryService().createProcessDefinitionQuery().processDefinitionId( processInfo.getProcessDefinitionId() ).singleResult();
with ReadOnlyProcessDefinition processDefinition = ((RepositoryServiceImpl)repositoryService).getDeployedProcessDefinition( processInfo.getProcessDefinitionId() );
did the work! 🙂
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.