Skip to content

Commit

Permalink
add example of broken experience
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Oct 31, 2024
1 parent 71172ee commit f1e091b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/io/iworkflow/integ/rpc/RpcWorkflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ public class RpcWorkflow implements ObjectWorkflow {

public static final String INTERNAL_CHANNEL_NAME = "test-channel-1";

// NOTE: this will break, unless move the default constructor to the top before this one
public RpcWorkflow(String p1){
if(p1==null){
throw new RuntimeException("cannot pass null");
}
}

public RpcWorkflow(){}


@Override
public List<CommunicationMethodDef> getCommunicationSchema() {
return Arrays.asList(
Expand Down

0 comments on commit f1e091b

Please sign in to comment.