-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename annotations (#239). Removed dedicated reader classes to ease d…
…eprecation handling
- Loading branch information
1 parent
5be448c
commit 51b4f64
Showing
30 changed files
with
367 additions
and
337 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
8 changes: 8 additions & 0 deletions
8
...t/spring-zeebe/src/main/java/io/camunda/zeebe/spring/client/annotation/CustomHeaders.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,8 @@ | ||
package io.camunda.zeebe.spring.client.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target(ElementType.PARAMETER) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
public @interface CustomHeaders {} |
12 changes: 12 additions & 0 deletions
12
client/spring-zeebe/src/main/java/io/camunda/zeebe/spring/client/annotation/Deployment.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,12 @@ | ||
package io.camunda.zeebe.spring.client.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Inherited // has to be inherited to work on spring aop beans | ||
public @interface Deployment { | ||
|
||
String[] resources() default {}; | ||
} |
39 changes: 39 additions & 0 deletions
39
client/spring-zeebe/src/main/java/io/camunda/zeebe/spring/client/annotation/JobWorker.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,39 @@ | ||
package io.camunda.zeebe.spring.client.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
public @interface JobWorker { | ||
|
||
String type() default ""; // set to empty string which leads to method name being used (if not ${zeebe.client.worker.default-type}" is configured) Implemented in ZeebeWorkerAnnotationProcessor | ||
|
||
String name() default ""; // set to empty string which leads to default from ZeebeClientBuilderImpl being used in ZeebeWorkerAnnotationProcessor | ||
|
||
long timeout() default -1L; | ||
|
||
int maxJobsActive() default -1; | ||
|
||
long requestTimeout() default -1L; | ||
|
||
long pollInterval() default -1L; | ||
|
||
String[] fetchVariables() default {}; | ||
|
||
/** | ||
* If set to true, all variables are fetched | ||
*/ | ||
boolean fetchAllVariables() default false; | ||
|
||
/** | ||
* If set to true, the job is automatically completed after the worker code has finished. | ||
* In this case, your worker code is not allowed to complete the job itself. | ||
* | ||
* You can still throw exceptions if you want to raise a problem instead of job completion. | ||
* You could also raise a BPMN problem throwing a {@link io.camunda.zeebe.spring.client.exception.ZeebeBpmnError} | ||
*/ | ||
boolean autoComplete() default true; | ||
|
||
boolean enabled() default true; | ||
} |
10 changes: 10 additions & 0 deletions
10
client/spring-zeebe/src/main/java/io/camunda/zeebe/spring/client/annotation/Variable.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,10 @@ | ||
package io.camunda.zeebe.spring.client.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target(ElementType.PARAMETER) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
public @interface Variable { | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...spring-zeebe/src/main/java/io/camunda/zeebe/spring/client/annotation/VariablesAsType.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,8 @@ | ||
package io.camunda.zeebe.spring.client.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target(ElementType.PARAMETER) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
public @interface VariablesAsType {} |
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
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
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
Oops, something went wrong.