Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgraded to Zeebe 0.14.0 and cleaned up a bit
- Loading branch information
1 parent
835721e
commit fc77fe3
Showing
20 changed files
with
212 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
...erndruecker/demo/DeployWorkflowModel.java → ...nnect/zeebe/test/DeployWorkflowModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ndruecker/demo/StartWorkflowInstance.java → ...ect/zeebe/test/StartWorkflowInstance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/test/java/io/berndruecker/demo/kafka/connect/zeebe/test/SysoutWorker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.berndruecker.demo.kafka.connect.zeebe.test; | ||
|
||
import io.zeebe.client.ZeebeClient; | ||
import io.zeebe.client.api.clients.JobClient; | ||
import io.zeebe.client.api.response.ActivatedJob; | ||
import io.zeebe.client.api.subscription.JobHandler; | ||
|
||
public class SysoutWorker { | ||
|
||
public static void main(String[] args) { | ||
ZeebeClient zeebe = ZeebeClient.newClient(); | ||
|
||
zeebe.jobClient().newWorker() | ||
.jobType("sysout") | ||
.handler(new JobHandler() { | ||
|
||
@Override | ||
public void handle(JobClient client, ActivatedJob job) { | ||
System.out.println(job); | ||
client.newCompleteCommand(job.getKey()).send().join(); | ||
} | ||
}) | ||
.open(); | ||
|
||
System.out.println("Waiting for work..."); | ||
} | ||
|
||
} |
Oops, something went wrong.