05-16-2016 02:29 PM
ProcessEngine pe = ProcessEngines.getDefaultProcessEngine();
pe.getIdentityService().setAuthenticatedUserId( userLoginName );
List<ProcessInstance> processes = pe.getRuntimeService().createProcessInstanceQuery().variableValueEquals("bpm_initiator", userLoginName).list();
SELECT SUB.* FROM ( select distinct RES.* , row_number() over (ORDER BY RES.ID_ asc) rnk FROM ( select distinct RES.* , P.KEY_ as ProcessDefinitionKey, P.ID_ as ProcessDefinitionId, P.NAME_ as ProcessDefinitionName, P.VERSION_ as ProcessDefinitionVersion, P.DEPLOYMENT_ID_ as DeploymentId from ACT_RU_EXECUTION RES inner join ACT_RE_PROCDEF P on RES.PROC_DEF_ID_ = P.ID_ inner join ACT_RU_VARIABLE A0 on RES.PROC_INST_ID_ = A0.PROC_INST_ID_ WHERE RES.PARENT_ID_ is null and A0.EXECUTION_ID_ = A0.PROC_INST_ID_ and A0.NAME_= ? and A0.TYPE_ = ? and A0.TEXT_ = ? )RES ) SUB WHERE SUB.rnk >= ? AND SUB.rnk < ?
05-18-2016 12:41 PM
05-18-2016 02:12 PM
05-26-2016 09:15 AM
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.