Tabnine Logo
org.camunda.bpm.engine.repository
Code IndexAdd Tabnine to your IDE (free)

How to use org.camunda.bpm.engine.repository

Best Java code snippets using org.camunda.bpm.engine.repository (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

@Override
public String toString() {
 return super.toString() + ", x=" + getX() + ", y=" + getY() + ", width=" + getWidth() + ", height=" + getHeight();
}
origin: camunda/camunda-bpm-platform

 @Override
 public List<DecisionRequirementsDefinition> getDeployedDecisionRequirementsDefinitions() {
  return deployment.getDeployedDecisionRequirementsDefinitions();
 }
}
origin: camunda/camunda-bpm-platform

private List<CaseDefinition> executePaginatedQuery(CaseDefinitionQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

protected void assertProcessDeployed(String processKey, String expectedDeploymentName) {
 
 ProcessDefinition processDefinition = repositoryService
   .createProcessDefinitionQuery()
   .latestVersion()
   .processDefinitionKey(processKey)
   .singleResult();    
 
 DeploymentQuery deploymentQuery = repositoryService
   .createDeploymentQuery()
   .deploymentId(processDefinition.getDeploymentId());
 
 Assert.assertEquals(expectedDeploymentName, deploymentQuery.singleResult().getName());
 
}
origin: camunda/camunda-bpm-platform

public void testParseSwitchedSourceAndTargetRefsForAssociations() {
 repositoryService.createDeployment()
   .addClasspathResource("org/camunda/bpm/engine/test/bpmn/parse/BpmnParseTest.testParseSwitchedSourceAndTargetRefsForAssociations.bpmn20.xml").deploy();
 assertEquals(1, repositoryService.createProcessDefinitionQuery().count());
 repositoryService.deleteDeployment(repositoryService.createDeploymentQuery().singleResult().getId(), true);
}
origin: camunda/camunda-bpm-platform

private void removeHistoryTimeToLive() {
 List<ProcessDefinition> processDefinitions = repositoryService.createProcessDefinitionQuery().processDefinitionKey(ONE_TASK_PROCESS).list();
 assertEquals(1, processDefinitions.size());
 repositoryService.updateProcessDefinitionHistoryTimeToLive(processDefinitions.get(0).getId(), null);
 final List<DecisionDefinition> decisionDefinitions = repositoryService.createDecisionDefinitionQuery().decisionDefinitionKey(DECISION).list();
 assertEquals(1, decisionDefinitions.size());
 repositoryService.updateDecisionDefinitionHistoryTimeToLive(decisionDefinitions.get(0).getId(), null);
 final List<CaseDefinition> caseDefinitions = repositoryService.createCaseDefinitionQuery().caseDefinitionKey(ONE_TASK_CASE).list();
 assertEquals(1, caseDefinitions.size());
 repositoryService.updateCaseDefinitionHistoryTimeToLive(caseDefinitions.get(0).getId(), null);
}
origin: camunda/camunda-bpm-platform

public void suspendProcessDefinitionByKey(String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate) {
 updateProcessDefinitionSuspensionState()
  .byProcessDefinitionKey(processDefinitionKey)
  .includeProcessInstances(suspendProcessInstances)
  .executionDate(suspensionDate)
  .suspend();
}
origin: camunda/camunda-bpm-platform

public void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate) {
 updateProcessDefinitionSuspensionState()
  .byProcessDefinitionKey(processDefinitionKey)
  .includeProcessInstances(activateProcessInstances)
  .executionDate(activationDate)
  .activate();
}
origin: camunda/camunda-bpm-platform

private List<Deployment> executePaginatedQuery(DeploymentQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

private List<ProcessDefinition> executePaginatedQuery(ProcessDefinitionQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

protected void assertProcessDeployed(String processKey, String expectedDeploymentName) {
 
 ProcessDefinition processDefinition = repositoryService
   .createProcessDefinitionQuery()
   .latestVersion()
   .processDefinitionKey(processKey)
   .singleResult();    
 
 DeploymentQuery deploymentQuery = repositoryService
   .createDeploymentQuery()
   .deploymentId(processDefinition.getDeploymentId());
 
 Assert.assertEquals(expectedDeploymentName, deploymentQuery.singleResult().getName());
 
}

origin: camunda/camunda-bpm-platform

public void testParseWithMultipleDocumentation() {
 repositoryService.createDeployment()
   .addClasspathResource("org/camunda/bpm/engine/test/bpmn/parse/BpmnParseTest.testParseWithMultipleDocumentation.bpmn20.xml").deploy();
 assertEquals(1, repositoryService.createProcessDefinitionQuery().count());
 repositoryService.deleteDeployment(repositoryService.createDeploymentQuery().singleResult().getId(), true);
}
origin: camunda/camunda-bpm-platform

public void suspendProcessDefinitionByKey(String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate) {
 updateProcessDefinitionSuspensionState()
  .byProcessDefinitionKey(processDefinitionKey)
  .includeProcessInstances(suspendProcessInstances)
  .executionDate(suspensionDate)
  .suspend();
}
origin: camunda/camunda-bpm-platform

public void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate) {
 updateProcessDefinitionSuspensionState()
  .byProcessDefinitionKey(processDefinitionKey)
  .includeProcessInstances(activateProcessInstances)
  .executionDate(activationDate)
  .activate();
}
origin: camunda/camunda-bpm-platform

@Override
public String toString() {
 return super.toString() + ", x=" + getX() + ", y=" + getY() + ", width=" + getWidth() + ", height=" + getHeight();
}
origin: camunda/camunda-bpm-platform

private List<CaseDefinition> executePaginatedQuery(CaseDefinitionQuery query, Integer firstResult, Integer maxResults) {
 if (firstResult == null) {
  firstResult = 0;
 }
 if (maxResults == null) {
  maxResults = Integer.MAX_VALUE;
 }
 return query.listPage(firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

protected void assertProcessDeployed(String processKey, String expectedDeploymentName) {
 
 ProcessDefinition processDefinition = repositoryService
   .createProcessDefinitionQuery()
   .latestVersion()
   .processDefinitionKey(processKey)
   .singleResult();    
 
 DeploymentQuery deploymentQuery = repositoryService
   .createDeploymentQuery()
   .deploymentId(processDefinition.getDeploymentId());
 
 Assert.assertEquals(expectedDeploymentName, deploymentQuery.singleResult().getName());
 
}

origin: camunda/camunda-bpm-platform

public void testParseCollaborationPlane() {
 repositoryService.createDeployment().addClasspathResource("org/camunda/bpm/engine/test/bpmn/parse/BpmnParseTest.testParseCollaborationPlane.bpmn").deploy();
 assertEquals(1, repositoryService.createProcessDefinitionQuery().count());
 repositoryService.deleteDeployment(repositoryService.createDeploymentQuery().singleResult().getId(), true);
}
origin: camunda/camunda-bpm-platform

protected void assertProcessDeployed(String processKey, String expectedDeploymentName) {
 
 ProcessDefinition processDefinition = repositoryService
   .createProcessDefinitionQuery()
   .latestVersion()
   .processDefinitionKey(processKey)
   .singleResult();    
 
 DeploymentQuery deploymentQuery = repositoryService
   .createDeploymentQuery()
   .deploymentId(processDefinition.getDeploymentId());
 
 Assert.assertEquals(expectedDeploymentName, deploymentQuery.singleResult().getName());
 
}
origin: camunda/camunda-bpm-platform

public void testParseWithBpmnNamespacePrefix() {
 repositoryService.createDeployment()
   .addClasspathResource("org/camunda/bpm/engine/test/bpmn/parse/BpmnParseTest.testParseWithBpmnNamespacePrefix.bpmn20.xml").deploy();
 assertEquals(1, repositoryService.createProcessDefinitionQuery().count());
 repositoryService.deleteDeployment(repositoryService.createDeploymentQuery().singleResult().getId(), true);
}
org.camunda.bpm.engine.repository

Most used classes

  • DeploymentBuilder
    Builder for creating new deployments. A builder instance can be obtained through org.camunda.bpm.en
  • ProcessDefinition
    An object structure representing an executable process composed of activities and transitions. Busin
  • ProcessDefinitionQuery
    Allows programmatic querying of ProcessDefinitions.
  • Deployment
    Represents a deployment that is already present in the process repository. A deployment is a contain
  • CaseDefinitionQuery
  • DeploymentQuery,
  • DecisionDefinitionQuery,
  • DeploymentWithDefinitions,
  • DecisionDefinition,
  • DecisionRequirementsDefinition,
  • DecisionRequirementsDefinitionQuery,
  • DeleteProcessDefinitionsBuilder,
  • DeleteProcessDefinitionsSelectBuilder,
  • ProcessApplicationDeployment,
  • ProcessApplicationDeploymentBuilder,
  • DeleteProcessDefinitionsTenantBuilder,
  • Resource,
  • UpdateProcessDefinitionSuspensionStateBuilder,
  • UpdateProcessDefinitionSuspensionStateSelectBuilder
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now