Skip to content

Commit

Permalink
feat(project): update to Zeebe 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
menski committed Feb 13, 2019
1 parent ebef689 commit b638025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</parent>

<properties>
<version.zeebe>0.14.0</version.zeebe>
<version.zeebe>0.15.0</version.zeebe>
<version.groovy>2.4.15</version.groovy>
<version.feel>1.5.0</version.feel>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/zeebe/script/ZeebeScriptWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void start() {
.build();

final ScriptJobHandler jobHandler = new ScriptJobHandler(client);
jobWorker = client.jobClient().newWorker().jobType("script").handler(jobHandler).open();
jobWorker = client.newWorker().jobType("script").handler(jobHandler).open();
}

public void stop() {
Expand Down
4 changes: 1 addition & 3 deletions src/test/java/io/zeebe/script/WorkflowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void shouldUseZeebeClient() {
"task", t -> t.zeebeTaskType("script").zeebeTaskHeader("language", "groovy"))
.zeebeTaskHeader(
"script",
"zeebeClient.workflowClient().newPublishMessageCommand().messageName('foo').correlationKey('bar').send().join()")
"zeebeClient.newPublishMessageCommand().messageName('foo').correlationKey('bar').send().join()")
.done();

final WorkflowInstanceEvent workflowInstance =
Expand All @@ -100,15 +100,13 @@ public void shouldUseZeebeClient() {
private WorkflowInstanceEvent deployAndCreateInstance(
final BpmnModelInstance workflow, Map<String, Object> payload) {
client
.workflowClient()
.newDeployCommand()
.addWorkflowModel(workflow, "process.bpmn")
.send()
.join();

final WorkflowInstanceEvent workflowInstance =
client
.workflowClient()
.newCreateInstanceCommand()
.bpmnProcessId("process")
.latestVersion()
Expand Down

0 comments on commit b638025

Please sign in to comment.