Class StopFlowOptions
java.lang.Object
io.superdurable.dex.StopFlowOptions
Configures how
Client.stopFlow(String) ends a running Flow.
The default constructor requests cancellation without a reason. Use the explicit constructor to terminate or fail a Flow and to attach a human-readable reason.
client.stopFlow(
"order-123",
new StopFlowOptions(StopType.TERMINATE, "operator request"));
-
Constructor Summary
ConstructorsConstructorDescriptionCreates cancellation options without an explicit reason.StopFlowOptions(StopType type, String reason) Creates stop options with an explicit mode and reason. -
Method Summary
-
Constructor Details
-
StopFlowOptions
public StopFlowOptions()Creates cancellation options without an explicit reason. -
StopFlowOptions
-