I have some actions in my service where I would like to return the message and avoid execution of subsequent actions. I know that each action's process method will be invoked in sequence and then following that the processSuccess methods would be invoked in reverse sequence. Perhaps there exists a flag/indicator to end the service?
say I have actions A,B,C in their respective sequence. In B, if a condition is satisfied, I want to return the message and end further processing of the service.
The action pipeline continues until an error. You can't break out of it early on "success". You have a couple of options: write your flow logic within a single action, or maybe use jBPM within an action.