Tabnine Logo
DeploymentQuery.deploymentName
Code IndexAdd Tabnine to your IDE (free)

How to use
deploymentName
method
in
org.camunda.bpm.engine.repository.DeploymentQuery

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

origin: camunda/camunda-bpm-platform

query.deploymentName(name);
origin: camunda/camunda-bpm-platform

public void testQueryByInvalidName() {
 DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentName("invalid");
 assertNull(query.singleResult());
 assertEquals(0, query.list().size());
 assertEquals(0, query.count());
 try {
  repositoryService.createDeploymentQuery().deploymentName(null);
  fail();
 } catch (ProcessEngineException e) {}
}
origin: camunda/camunda-bpm-platform

public void testQueryByName() {
 DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentName("org/camunda/bpm/engine/test/repository/two_.bpmn20.xml");
 assertNotNull(query.singleResult());
 assertEquals(1, query.list().size());
 assertEquals(1, query.count());
}
origin: camunda/camunda-bpm-platform

query.deploymentName(name);
origin: camunda/camunda-bpm-platform

@Test
public void testDeployProcessArchive() {
 Assert.assertNotNull(ProgrammaticBeanLookup.lookup(ProcessEngine.class));
 // no deployment has been constructed
 Assert.assertEquals(0, repositoryService.createDeploymentQuery().deploymentName("pa").count());
}
origin: camunda/camunda-bpm-platform

@Test
public void testAdditionalParameters() {
 Map<String, String> queryParameters = getCompleteQueryParameters();
 given().queryParams(queryParameters)
  .expect().statusCode(Status.OK.getStatusCode())
  .when().get(DEPLOYMENT_QUERY_URL);
 // assert query invocation
 verify(mockedQuery).deploymentName(queryParameters.get("name"));
 verify(mockedQuery).deploymentNameLike(queryParameters.get("nameLike"));
 verify(mockedQuery).deploymentId(queryParameters.get("id"));
 verify(mockedQuery).deploymentSource(queryParameters.get("source"));
 verify(mockedQuery).list();
}
origin: camunda/camunda-bpm-platform

public void testDefaultDeploymentSource() {
 String key = "process";
 BpmnModelInstance model = Bpmn.createExecutableProcess(key).done();
 DeploymentQuery deploymentQuery = repositoryService.createDeploymentQuery();
 Deployment deployment = repositoryService
   .createDeployment(processApplication.getReference())
   .name("first-deployment-with-a-source")
   .addModelInstance("process.bpmn", model)
   .deploy();
 assertEquals(ProcessApplicationDeployment.PROCESS_APPLICATION_DEPLOYMENT_SOURCE, deploymentQuery.deploymentName("first-deployment-with-a-source").singleResult().getSource());
 deleteDeployments(deployment);
}
origin: camunda/camunda-bpm-platform

public void testDeploymentSourceShouldBeNull() {
 String key = "process";
 BpmnModelInstance model = Bpmn.createExecutableProcess(key).done();
 DeploymentQuery deploymentQuery = repositoryService.createDeploymentQuery();
 Deployment deployment1 = repositoryService
   .createDeployment()
   .name("first-deployment-without-a-source")
   .addModelInstance("process.bpmn", model)
   .deploy();
 assertNull(deploymentQuery.deploymentName("first-deployment-without-a-source").singleResult().getSource());
 Deployment deployment2 = repositoryService
   .createDeployment(processApplication.getReference())
   .name("second-deployment-with-a-source")
   .source(null)
   .addModelInstance("process.bpmn", model)
   .deploy();
 assertNull(deploymentQuery.deploymentName("second-deployment-with-a-source").singleResult().getSource());
 deleteDeployments(deployment1, deployment2);
}
origin: camunda/camunda-bpm-platform

public void testDeploymentSourceShouldNotBeNull() {
 String key = "process";
 BpmnModelInstance model = Bpmn.createExecutableProcess(key).done();
 DeploymentQuery deploymentQuery = repositoryService.createDeploymentQuery();
 Deployment deployment1 = repositoryService
   .createDeployment()
   .name("first-deployment-without-a-source")
   .source("my-first-deployment-source")
   .addModelInstance("process.bpmn", model)
   .deploy();
 assertEquals("my-first-deployment-source", deploymentQuery.deploymentName("first-deployment-without-a-source").singleResult().getSource());
 Deployment deployment2 = repositoryService
   .createDeployment(processApplication.getReference())
   .name("second-deployment-with-a-source")
   .source("my-second-deployment-source")
   .addModelInstance("process.bpmn", model)
   .deploy();
 assertEquals("my-second-deployment-source", deploymentQuery.deploymentName("second-deployment-with-a-source").singleResult().getSource());
 deleteDeployments(deployment1, deployment2);
}
origin: camunda/camunda-bpm-platform

public void testOverwriteDeploymentSource() {
 String key = "process";
 BpmnModelInstance model = Bpmn.createExecutableProcess(key).done();
 DeploymentQuery deploymentQuery = repositoryService.createDeploymentQuery();
 Deployment deployment = repositoryService
   .createDeployment(processApplication.getReference())
   .name("first-deployment-with-a-source")
   .source("my-source")
   .addModelInstance("process.bpmn", model)
   .deploy();
 assertEquals("my-source", deploymentQuery.deploymentName("first-deployment-with-a-source").singleResult().getSource());
 deleteDeployments(deployment);
}
origin: camunda/camunda-bpm-platform

public void testRedeployNewDeployment() {
 // given
 BpmnModelInstance model = createProcessWithServiceTask(PROCESS_KEY);
 Deployment deployment1 = repositoryService
   .createDeployment()
   .name(DEPLOYMENT_NAME)
   .addModelInstance(RESOURCE_NAME, model)
   .deploy();
 DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentName(DEPLOYMENT_NAME);
 assertNotNull(deployment1.getId());
 verifyQueryResults(query, 1);
 // when
 Deployment deployment2 = repositoryService
   .createDeployment()
   .name(DEPLOYMENT_NAME)
   .addDeploymentResources(deployment1.getId())
   .deploy();
 // then
 assertNotNull(deployment2);
 assertNotNull(deployment2.getId());
 assertFalse(deployment1.getId().equals(deployment2.getId()));
 verifyQueryResults(query, 2);
 deleteDeployments(deployment1, deployment2);
}
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: camunda/camunda-bpm-platform

.deploymentName(name);
origin: org.camunda.bpm/camunda-engine

public void testQueryByInvalidName() {
 DeploymentQuery query = repositoryService.createDeploymentQuery().deploymentName("invalid");
 assertNull(query.singleResult());
 assertEquals(0, query.list().size());
 assertEquals(0, query.count());
 try {
  repositoryService.createDeploymentQuery().deploymentName(null);
  fail();
 } catch (ProcessEngineException e) {}
}
org.camunda.bpm.engine.repositoryDeploymentQuerydeploymentName

Javadoc

Only select deployments with the given name.

Popular methods of DeploymentQuery

  • list
  • singleResult
  • count
  • deploymentId
    Only select deployments with the given deployment id.
  • deploymentAfter
    Only select deployments deployed after the given date
  • deploymentBefore
    Only select deployments deployed before the given date
  • deploymentNameLike
    Only select deployments with a name like the given string.
  • deploymentSource
    If the given source is null, then deployments are returned where source is equal to null. Otherwise
  • includeDeploymentsWithoutTenantId
    Select deployments which have no tenant id. Can be used in combination with #tenantIdIn(String...).
  • orderByDeploymentId
    Order by deployment id (needs to be followed by #asc() or #desc()).
  • orderByDeploymentName
    Order by deployment name (needs to be followed by #asc() or #desc()).
  • orderByDeploymentTime
    Order by deployment time (needs to be followed by #asc() or #desc()).
  • orderByDeploymentName,
  • orderByDeploymentTime,
  • orderByTenantId,
  • tenantIdIn,
  • withoutTenantId,
  • listPage,
  • asc,
  • desc,
  • orderByDeploymenTime

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Menu (java.awt)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
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