protected internal virtual ICollection <string> collectProcessInstanceIds() { HashSet <string> allProcessInstanceIds = new HashSet <string>(); IList <string> processInstanceIds = builder.ProcessInstanceIds; if (processInstanceIds != null) { allProcessInstanceIds.addAll(processInstanceIds); } ProcessInstanceQueryImpl processInstanceQuery = (ProcessInstanceQueryImpl)builder.ProcessInstanceQuery; if (processInstanceQuery != null) { allProcessInstanceIds.addAll(processInstanceQuery.listIds()); } HistoricProcessInstanceQueryImpl historicProcessInstanceQuery = (HistoricProcessInstanceQueryImpl)builder.HistoricProcessInstanceQuery; if (historicProcessInstanceQuery != null) { allProcessInstanceIds.addAll(historicProcessInstanceQuery.listIds()); } return(allProcessInstanceIds); }
protected internal virtual IList <string> collectHistoricProcessInstanceIds() { ISet <string> collectedProcessInstanceIds = new HashSet <string>(); IList <string> processInstanceIds = this.HistoricProcessInstanceIds; if (processInstanceIds != null) { collectedProcessInstanceIds.addAll(processInstanceIds); } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl processInstanceQuery = (org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl) this.historicProcessInstanceQuery; HistoricProcessInstanceQueryImpl processInstanceQuery = (HistoricProcessInstanceQueryImpl)this.historicProcessInstanceQuery; if (processInstanceQuery != null) { foreach (HistoricProcessInstance hpi in processInstanceQuery.list()) { collectedProcessInstanceIds.Add(hpi.Id); } } return(new List <string>(collectedProcessInstanceIds)); }
protected internal virtual IList <string> collectProcessInstanceIds() { ISet <string> collectedProcessInstanceIds = new HashSet <string>(); IList <string> processInstanceIds = builder.ProcessInstanceIds; if (processInstanceIds != null && processInstanceIds.Count > 0) { collectedProcessInstanceIds.addAll(processInstanceIds); } ProcessInstanceQueryImpl processInstanceQuery = (ProcessInstanceQueryImpl)builder.ProcessInstanceQuery; if (processInstanceQuery != null) { collectedProcessInstanceIds.addAll(processInstanceQuery.listIds()); } HistoricProcessInstanceQueryImpl historicProcessInstanceQuery = (HistoricProcessInstanceQueryImpl)builder.HistoricProcessInstanceQuery; if (historicProcessInstanceQuery != null) { collectedProcessInstanceIds.addAll(historicProcessInstanceQuery.listIds()); } return(new List <string>(collectedProcessInstanceIds)); }
/// <summary> /// 读取分页记录 /// </summary> /// <param name="historyService">历史记录仓储服务</param> /// <param name="pageableRepositoryService">分页仓储服务</param> /// <param name="qo">查询对象</param> /// <returns></returns> public IPage <HistoricInstance> LoadPage(IHistoryService historyService, PageableProcessHistoryRepositoryService pageableRepositoryService, HistoricInstanceQuery qo) { HistoricProcessInstanceQueryImpl query = historyService.CreateHistoricProcessInstanceQuery() as HistoricProcessInstanceQueryImpl; FastCopy.Copy <HistoricInstanceQuery, HistoricProcessInstanceQueryImpl>(qo, query); if (qo.IsTerminated.HasValue) { if (qo.IsTerminated.Value) { query.SetDeleted(); } else { query.SetNotDeleted(); } } pageableRepositoryService.SortApplier.ApplySort(query, qo.Pageable); IPage <HistoricInstance> defs = pageableRepositoryService.PageRetriever.LoadPage(historyService as ServiceImpl, query, qo.Pageable, pageableRepositoryService.ProcessDefinitionConverter, (q, firstResult, pageSize) => { return(new Engine.Impl.Cmd.GetHistoricProcessInstancesCmd(q, firstResult, pageSize)); }); return(defs); }
public virtual long findHistoricProcessInstanceCountByQueryCriteria(HistoricProcessInstanceQueryImpl historicProcessInstanceQuery) { if (HistoryEnabled) { configureQuery(historicProcessInstanceQuery); return((long?)DbEntityManager.selectOne("selectHistoricProcessInstanceCountByQueryCriteria", historicProcessInstanceQuery).Value); } return(0); }
protected internal virtual ICollection <string> collectProcessInstanceIds() { ISet <string> collectedProcessInstanceIds = new HashSet <string>(); IList <string> processInstanceIds = builder.ProcessInstanceIds; if (processInstanceIds != null) { collectedProcessInstanceIds.addAll(processInstanceIds); } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl historicProcessInstanceQuery = (org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl) builder.getHistoricProcessInstanceQuery(); HistoricProcessInstanceQueryImpl historicProcessInstanceQuery = (HistoricProcessInstanceQueryImpl)builder.HistoricProcessInstanceQuery; if (historicProcessInstanceQuery != null) { collectedProcessInstanceIds.addAll(historicProcessInstanceQuery.listIds()); } EnsureUtil.ensureNotEmpty(typeof(BadUserRequestException), "processInstanceIds", collectedProcessInstanceIds); return(collectedProcessInstanceIds); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<org.camunda.bpm.engine.history.HistoricProcessInstance> findHistoricProcessInstancesByQueryCriteria(org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl historicProcessInstanceQuery, org.camunda.bpm.engine.impl.Page page) public virtual IList <HistoricProcessInstance> findHistoricProcessInstancesByQueryCriteria(HistoricProcessInstanceQueryImpl historicProcessInstanceQuery, Page page) { if (HistoryEnabled) { configureQuery(historicProcessInstanceQuery); return(DbEntityManager.selectList("selectHistoricProcessInstancesByQueryCriteria", historicProcessInstanceQuery, page)); } return(Collections.EMPTY_LIST); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<String> findHistoricProcessInstanceIds(org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl historicProcessInstanceQuery) public virtual IList <string> findHistoricProcessInstanceIds(HistoricProcessInstanceQueryImpl historicProcessInstanceQuery) { configureQuery(historicProcessInstanceQuery); return((IList <string>)DbEntityManager.selectList("selectHistoricProcessInstanceIdsByQueryCriteria", historicProcessInstanceQuery)); }
protected internal virtual void configureQuery(HistoricProcessInstanceQueryImpl query) { AuthorizationManager.configureHistoricProcessInstanceQuery(query); TenantManager.configureQuery(query); }
/* HISTORY */ // historic process instance query /////////////////////////////////// public virtual void configureHistoricProcessInstanceQuery(HistoricProcessInstanceQueryImpl query) { configureQuery(query, PROCESS_DEFINITION, "SELF.PROC_DEF_KEY_", READ_HISTORY); }