Git Product home page Git Product logo

Comments (5)

zambrovski avatar zambrovski commented on August 14, 2024

Hi, sure... is there any feature you are missing? Just make a wish...

from camunda-platform-7-rest-client-spring-boot.

martin-schaefer avatar martin-schaefer commented on August 14, 2024

Hi Simon,
Wow, that is very kind of you. The use case I need to implement is to check if a certain process defitionen is deployed on the remote Camunda BPM and if not, to deploy it. That means I need to:

  • Find a process definition by key and version tag
  • Deploy process definition

Expressed in the Camunda Java API it would be something as follows:

import java.util.List;
import org.camunda.bpm.engine.RepositoryService;
import org.camunda.bpm.engine.repository.ProcessDefinition;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class ProcessDeployer {

	private final RepositoryService repositoryService;

	/**
	 * Check if the current version of myProcess.bpmn20.xml is deployed. If not, deploy it.
	 */
	public void assertProcessDeployment() {
		List<ProcessDefinition> processDefinitions = repositoryService.createProcessDefinitionQuery()
				.processDefinitionKey("myProcess").versionTag("1.0.0").list();
		if (processDefinitions.isEmpty()) {
			repositoryService.createDeployment().addClasspathResource("processes/myProcess.bpmn20.xml").deploy();
		}
	}
}

from camunda-platform-7-rest-client-spring-boot.

zambrovski avatar zambrovski commented on August 14, 2024

I'll split out the deployment to a separate issue.

from camunda-platform-7-rest-client-spring-boot.

martin-schaefer avatar martin-schaefer commented on August 14, 2024

ok, thx

from camunda-platform-7-rest-client-spring-boot.

martin-schaefer avatar martin-schaefer commented on August 14, 2024

Has this been implemented in v0.0.5?

from camunda-platform-7-rest-client-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.