Skip to content

Commit c210761

Browse files
committed
IWF-438: Add workflow with finalized RPC method
1 parent e484f61 commit c210761

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package io.iworkflow.integ.rpc;
2+
3+
import io.iworkflow.core.Context;
4+
import io.iworkflow.core.ObjectWorkflow;
5+
import io.iworkflow.core.RPC;
6+
import io.iworkflow.core.StateDef;
7+
import io.iworkflow.core.communication.Communication;
8+
import io.iworkflow.core.persistence.Persistence;
9+
import org.springframework.stereotype.Component;
10+
11+
import java.util.Arrays;
12+
import java.util.List;
13+
14+
@Component
15+
public class RpcWorkflowWithFinalRpc implements ObjectWorkflow {
16+
17+
@Override
18+
public List<StateDef> getWorkflowStates() {
19+
return Arrays.asList(
20+
StateDef.startingState(new RpcWorkflowState1()),
21+
StateDef.nonStartingState(new RpcWorkflowState2())
22+
);
23+
}
24+
25+
@RPC
26+
public final void testRpc(Context context, String input, Persistence persistence, Communication communication) {
27+
return;
28+
}
29+
}

0 commit comments

Comments
 (0)