Example #1
0
//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.impl.persistence.entity.ByteArrayEntity> getHistoricVariableUpdateByteArrays(java.util.List<String> byteArrayIds)
        public virtual IList <ByteArrayEntity> getHistoricVariableUpdateByteArrays(IList <string> byteArrayIds)
        {
            return((IList <ByteArrayEntity>)DbEntityManager.selectList("selectByteArrays", byteArrayIds));
        }
Example #2
0
 public virtual long getStatisticsCountGroupedByDecisionRequirementsDefinition(HistoricDecisionInstanceStatisticsQueryImpl decisionRequirementsDefinitionStatisticsQuery)
 {
     configureQuery(decisionRequirementsDefinitionStatisticsQuery);
     return((long?)DbEntityManager.selectOne("selectDecisionDefinitionStatisticsCount", decisionRequirementsDefinitionStatisticsQuery).Value);
 }
Example #3
0
//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.management.ProcessDefinitionStatistics> getStatisticsGroupedByProcessDefinitionVersion(org.camunda.bpm.engine.impl.ProcessDefinitionStatisticsQueryImpl query, org.camunda.bpm.engine.impl.Page page)
        public virtual IList <ProcessDefinitionStatistics> getStatisticsGroupedByProcessDefinitionVersion(ProcessDefinitionStatisticsQueryImpl query, Page page)
        {
            configureQuery(query);
            return(DbEntityManager.selectList("selectProcessDefinitionStatistics", query, page));
        }
Example #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<JobDefinitionEntity> findByProcessDefinitionId(String processDefinitionId)
	  public virtual IList<JobDefinitionEntity> findByProcessDefinitionId(string processDefinitionId)
	  {
		return DbEntityManager.selectList("selectJobDefinitionsByProcessDefinitionId", processDefinitionId);
	  }
Example #5
0
//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.management.JobDefinition> findJobDefnitionByQueryCriteria(org.camunda.bpm.engine.impl.JobDefinitionQueryImpl jobDefinitionQuery, org.camunda.bpm.engine.impl.Page page)
	  public virtual IList<JobDefinition> findJobDefnitionByQueryCriteria(JobDefinitionQueryImpl jobDefinitionQuery, Page page)
	  {
		configureQuery(jobDefinitionQuery);
		return DbEntityManager.selectList("selectJobDefinitionByQueryCriteria", jobDefinitionQuery, page);
	  }
Example #6
0
 public virtual long findExecutionCountByNativeQuery(IDictionary <string, object> parameterMap)
 {
     return((long?)DbEntityManager.selectOne("selectExecutionCountByNativeQuery", parameterMap).Value);
 }
Example #7
0
 public virtual ExecutionEntity findSubProcessInstanceBySuperExecutionId(string superExecutionId)
 {
     return((ExecutionEntity)DbEntityManager.selectOne("selectSubProcessInstanceBySuperExecutionId", superExecutionId));
 }
Example #8
0
//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> findDeploymentIdsByProcessInstances(java.util.List<String> processInstanceIds)
        public virtual IList <string> findDeploymentIdsByProcessInstances(IList <string> processInstanceIds)
        {
            return(DbEntityManager.selectList("selectDeploymentIdsByProcessInstances", processInstanceIds));
        }
Example #9
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
//ORIGINAL LINE: public void deleteDeployment(String deploymentId, final boolean cascade, final boolean skipCustomListeners, boolean skipIoMappings)
        public virtual void deleteDeployment(string deploymentId, bool cascade, bool skipCustomListeners, bool skipIoMappings)
        {
            IList <ProcessDefinition> processDefinitions = ProcessDefinitionManager.findProcessDefinitionsByDeploymentId(deploymentId);

            if (cascade)
            {
                // *NOTE*:
                // The process instances of ALL process definitions must be
                // deleted, before every process definition can be deleted!
                //
                // On deletion of all process instances, the task listeners will
                // be deleted as well. Deletion of tasks and listeners needs
                // the redeployment of deployments, which can cause to problems if
                // is done sequential with deletion of process definition.
                //
                // For example:
                // Deployment contains two process definiton. First process definition
                // and instances will be removed, also cleared from the cache.
                // Second process definition will be removed and his instances.
                // Deletion of instances will cause redeployment this deploys again
                // first into the cache. Only the second will be removed from cache and
                // first remains in the cache after the deletion process.
                //
                // Thats why we have to clear up all instances at first, after that
                // we can cleanly remove the process definitions.
                foreach (ProcessDefinition processDefinition in processDefinitions)
                {
                    string processDefinitionId = processDefinition.Id;
                    ProcessInstanceManager.deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted deployment", true, skipCustomListeners, skipIoMappings);
                }
                // delete historic job logs (for example for timer start event jobs)
                HistoricJobLogManager.deleteHistoricJobLogsByDeploymentId(deploymentId);
            }


            foreach (ProcessDefinition processDefinition in processDefinitions)
            {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String processDefinitionId = processDefinition.getId();
                string processDefinitionId = processDefinition.Id;
                // Process definition cascade true deletes the history and
                // process instances if instances flag is set as well to true.
                // Problem as described above, redeployes the deployment.
                // Represents no problem if only one process definition is deleted
                // in a transaction! We have to set the instances flag to false.
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.engine.impl.interceptor.CommandContext commandContext = org.camunda.bpm.engine.impl.context.Context.getCommandContext();
                CommandContext commandContext = Context.CommandContext;
                commandContext.runWithoutAuthorization(new CallableAnonymousInnerClass(this, cascade, skipCustomListeners, processDefinitionId, commandContext));
            }

            deleteCaseDeployment(deploymentId, cascade);

            deleteDecisionDeployment(deploymentId, cascade);
            deleteDecisionRequirementDeployment(deploymentId);

            ResourceManager.deleteResourcesByDeploymentId(deploymentId);

            deleteAuthorizations(Resources.DEPLOYMENT, deploymentId);
            DbEntityManager.delete(typeof(DeploymentEntity), "deleteDeployment", deploymentId);
        }
Example #10
0
//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.repository.Deployment> findDeploymentsByQueryCriteria(org.camunda.bpm.engine.impl.DeploymentQueryImpl deploymentQuery, org.camunda.bpm.engine.impl.Page page)
        public virtual IList <Deployment> findDeploymentsByQueryCriteria(DeploymentQueryImpl deploymentQuery, Page page)
        {
            configureQuery(deploymentQuery);
            return(DbEntityManager.selectList("selectDeploymentsByQueryCriteria", deploymentQuery, page));
        }
Example #11
0
//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> getDeploymentResourceNames(String deploymentId)
        public virtual IList <string> getDeploymentResourceNames(string deploymentId)
        {
            return(DbEntityManager.selectList("selectResourceNamesByDeploymentId", deploymentId));
        }
Example #12
0
 public virtual long findDeploymentCountByQueryCriteria(DeploymentQueryImpl deploymentQuery)
 {
     configureQuery(deploymentQuery);
     return((long?)DbEntityManager.selectOne("selectDeploymentCountByQueryCriteria", deploymentQuery).Value);
 }
Example #13
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<DeploymentEntity> findDeploymentsByIds(String... deploymentsIds)
        public virtual IList <DeploymentEntity> findDeploymentsByIds(params string[] deploymentsIds)
        {
            return(DbEntityManager.selectList("selectDeploymentsByIds", deploymentsIds));
        }
Example #14
0
 public virtual DeploymentEntity findDeploymentById(string deploymentId)
 {
     return(DbEntityManager.selectById(typeof(DeploymentEntity), deploymentId));
 }
Example #15
0
//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> findProcessInstancesIdsByQueryCriteria(org.camunda.bpm.engine.impl.ProcessInstanceQueryImpl processInstanceQuery)
        public virtual IList <string> findProcessInstancesIdsByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
        {
            configureQuery(processInstanceQuery);
            return(DbEntityManager.selectList("selectProcessInstanceIdsByQueryCriteria", processInstanceQuery));
        }
Example #16
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<ExecutionEntity> findChildExecutionsByParentExecutionId(String parentExecutionId)
        public virtual IList <ExecutionEntity> findChildExecutionsByParentExecutionId(string parentExecutionId)
        {
            return(DbEntityManager.selectList("selectExecutionsByParentExecutionId", parentExecutionId));
        }
Example #17
0
//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.runtime.ProcessInstance> findProcessInstanceByNativeQuery(java.util.Map<String, Object> parameterMap, int firstResult, int maxResults)
        public virtual IList <ProcessInstance> findProcessInstanceByNativeQuery(IDictionary <string, object> parameterMap, int firstResult, int maxResults)
        {
            return(DbEntityManager.selectListWithRawParameter("selectExecutionByNativeQuery", parameterMap, firstResult, maxResults));
        }
Example #18
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<ExecutionEntity> findExecutionsByProcessInstanceId(String processInstanceId)
        public virtual IList <ExecutionEntity> findExecutionsByProcessInstanceId(string processInstanceId)
        {
            return(DbEntityManager.selectList("selectExecutionsByProcessInstanceId", processInstanceId));
        }
Example #19
0
 public virtual void insertExecution(ExecutionEntity execution)
 {
     DbEntityManager.insert(execution);
     createDefaultAuthorizations(execution);
 }
Example #20
0
 public virtual ExecutionEntity findExecutionById(string executionId)
 {
     return(DbEntityManager.selectById(typeof(ExecutionEntity), executionId));
 }
Example #21
0
	  public virtual JobDefinitionEntity findById(string jobDefinitionId)
	  {
		return DbEntityManager.selectById(typeof(JobDefinitionEntity), jobDefinitionId);
	  }
Example #22
0
 public virtual long findExecutionCountByQueryCriteria(ExecutionQueryImpl executionQuery)
 {
     configureQuery(executionQuery);
     return((long?)DbEntityManager.selectOne("selectExecutionCountByQueryCriteria", executionQuery).Value);
 }
Example #23
0
	  public virtual void deleteJobDefinitionsByProcessDefinitionId(string id)
	  {
		DbEntityManager.delete(typeof(JobDefinitionEntity), "deleteJobDefinitionsByProcessDefinitionId", id);
	  }
Example #24
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public java.util.List<ExecutionEntity> findExecutionsByQueryCriteria(org.camunda.bpm.engine.impl.ExecutionQueryImpl executionQuery, org.camunda.bpm.engine.impl.Page page)
        public virtual IList <ExecutionEntity> findExecutionsByQueryCriteria(ExecutionQueryImpl executionQuery, Page page)
        {
            configureQuery(executionQuery);
            return(DbEntityManager.selectList("selectExecutionsByQueryCriteria", executionQuery, page));
        }
Example #25
0
	  public virtual long findJobDefinitionCountByQueryCriteria(JobDefinitionQueryImpl jobDefinitionQuery)
	  {
		configureQuery(jobDefinitionQuery);
		return (long?) DbEntityManager.selectOne("selectJobDefinitionCountByQueryCriteria", jobDefinitionQuery).Value;
	  }
Example #26
0
 public virtual long findProcessInstanceCountByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery)
 {
     configureQuery(processInstanceQuery);
     return((long?)DbEntityManager.selectOne("selectProcessInstanceCountByQueryCriteria", processInstanceQuery).Value);
 }
Example #27
0
 public virtual IList <HistoricDecisionInstanceStatistics> getStatisticsGroupedByDecisionRequirementsDefinition(HistoricDecisionInstanceStatisticsQueryImpl query, Page page)
 {
     configureQuery(query);
     return(DbEntityManager.selectList("selectDecisionDefinitionStatistics", query, page));
 }
Example #28
0
//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.runtime.ProcessInstance> findProcessInstancesByQueryCriteria(org.camunda.bpm.engine.impl.ProcessInstanceQueryImpl processInstanceQuery, org.camunda.bpm.engine.impl.Page page)
        public virtual IList <ProcessInstance> findProcessInstancesByQueryCriteria(ProcessInstanceQueryImpl processInstanceQuery, Page page)
        {
            configureQuery(processInstanceQuery);
            return(DbEntityManager.selectList("selectProcessInstanceByQueryCriteria", processInstanceQuery, page));
        }
Example #29
0
 public virtual long getStatisticsCountGroupedByProcessDefinitionVersion(ProcessDefinitionStatisticsQueryImpl query)
 {
     configureQuery(query);
     return((long?)DbEntityManager.selectOne("selectProcessDefinitionStatisticsCount", query).Value);
 }
Example #30
0
 public virtual long getHistoricStatisticsCountGroupedByCaseActivity(HistoricCaseActivityStatisticsQueryImpl query)
 {
     return((long?)DbEntityManager.selectOne("selectHistoricCaseActivityStatisticsCount", query).Value);
 }