Skip to content

Commit 5d52f3d

Browse files
Add README and minor fix waitForCompletionStates name (#217)
1 parent 392a3c5 commit 5d52f3d

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For the latest version, [MVN Repository](https://mvnrepository.com/artifact/io.i
2323

2424
```gradle
2525
// https://mvnrepository.com/artifact/io.iworkflow/iwf-java-sdk
26-
implementation 'io.iworkflow:iwf-java-sdk:2.2.+'
26+
implementation 'io.iworkflow:iwf-java-sdk:2.5.+'
2727
```
2828

2929
### Maven
@@ -33,7 +33,7 @@ implementation 'io.iworkflow:iwf-java-sdk:2.2.+'
3333
<dependency>
3434
<groupId>io.iworkflow</groupId>
3535
<artifactId>iwf-java-sdk</artifactId>
36-
<version>2.2.+</version>
36+
<version>2.5.+</version>
3737
<type>pom</type>
3838
</dependency>
3939
@@ -135,4 +135,8 @@ Run the command `git submodule update --remote --merge` to update IDL to the lat
135135
### 2.4
136136

137137
- [x] Support execute API failure policy
138-
- [x] Support RPC persistence locking policy
138+
- [x] Support RPC persistence locking policy
139+
140+
### 2.5
141+
142+
- [x] Add waitForStateExecutionCompletion API

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ signing {
161161
}
162162

163163
group = "io.iworkflow"
164-
version = "2.5.1"
164+
version = "2.5.4"
165165

166166
nexusPublishing {
167167
repositories {

src/main/java/io/iworkflow/core/WorkflowOptionBuilderExtension.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class WorkflowOptionBuilderExtension {
1414
* @param states The states to wait for completion. O
1515
* @return The builder.
1616
*/
17-
public WorkflowOptionBuilderExtension WaitForCompletionStates(Class<? extends WorkflowState> ...states) {
17+
public WorkflowOptionBuilderExtension waitForCompletionStates(Class<? extends WorkflowState> ...states) {
1818
Arrays.stream(states).forEach(
1919
state -> builder.addWaitForCompletionStateExecutionIds(
2020
WorkflowState.getStateExecutionId(state,1)
@@ -28,7 +28,7 @@ public WorkflowOptionBuilderExtension WaitForCompletionStates(Class<? extends Wo
2828
* @param number The number of the state completion to wait for. E.g. when it's 2, it's waiting for the second completion of the state.
2929
* @return The builder.
3030
*/
31-
public WorkflowOptionBuilderExtension WaitForCompletionStateWithNumber(Class<? extends WorkflowState> state, int number) {
31+
public WorkflowOptionBuilderExtension waitForCompletionStateWithNumber(Class<? extends WorkflowState> state, int number) {
3232
builder.addWaitForCompletionStateExecutionIds(
3333
WorkflowState.getStateExecutionId(state, number)
3434
);

src/test/java/io/iworkflow/integ/TimerTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import io.iworkflow.core.Client;
44
import io.iworkflow.core.ClientOptions;
5-
import io.iworkflow.core.ImmutableWorkflowOptions;
6-
import io.iworkflow.core.WorkflowOptionBuilderExtension;
75
import io.iworkflow.core.WorkflowOptions;
86
import io.iworkflow.integ.timer.BasicTimerWorkflow;
97
import io.iworkflow.integ.timer.BasicTimerWorkflowState1;
@@ -32,7 +30,7 @@ public void testBasicTimerWorkflow() throws InterruptedException {
3230
client.startWorkflow(
3331
BasicTimerWorkflow.class, wfId, 10, input,
3432
WorkflowOptions.extendedBuilder()
35-
.WaitForCompletionStates(BasicTimerWorkflowState1.class)
33+
.waitForCompletionStates(BasicTimerWorkflowState1.class)
3634
.getBuilder().build());
3735

3836
client.waitForStateExecutionCompletion(wfId, BasicTimerWorkflowState1.class);

0 commit comments

Comments
 (0)