chain
fun chain(waitCommandId: String, function: NamedFunctionInfoData, tailStage: CommandStage, tailFunction: NamedFunctionInfoData): SimpleWaitingForChain
Factory method to create a simple waiting chain with specified parameters.
Return
A new SimpleWaitingForChain instance.
Parameters
waitCommandId
The unique identifier for the wait strategy.
function
The function criteria for the main saga handling stage.
tailStage
The command stage to wait for in the tail.
tailFunction
The function criteria for the tail stage.