8000 GitHub - jack5505/camundalearn
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jack5505/camundalearn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project about working with camunda with zeebe client. Stack of project spring-boot: 3.4.3 java: 17 camunda: 8.2.1 For working you should add this dependency into project.

  <dependency>
        <groupId>io.camunda.spring</groupId>
        <artifactId>spring-boot-starter-camunda</artifactId>
        <version>8.5.18</version>
    </dependency>

and configure application.yml file this configuration

camunda: client: zeebe: base-url: "http://localhost:26500"

but before it make sure camunda bpm engine and zeebe client is working.

In order to deployment to new .bpmn extension into camunda engine you might use annotation @Deployment and refer there bpmn model then spring automatically will deploy this bpm proces into camunda engine.In order to run code with that bpmn process you might call following zeebeclient api

zeebeClient.newCreateInstanceCommand()
                    .bpmnProcessId("Process_0d7nws1")
                    .latestVersion()
                    .variable(
                            "variables",
                            Map.of(
                                    "name", "John",
                                    "age", 30
                            )
                    )
                    .send()
                    .exceptionally(throwable ->
                    {
                        System.out.println("error " + throwable.getMessage());
                        throw new RuntimeException(throwable);
                    }); 

full example of code into project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0