Reputation: 6784
I would like to return one of the possible 3 events from my action class. Most of the Spring Webflow events are binary as in they return success()
/ error()
or yes()
/ no()
types of events. I would like to return success()
, error()
and someThingElse()
or some String events like approved
, rejected
, onHold
How would I do that?
Thank you Chaitanya
Upvotes: 1
Views: 893
Reputation: 6784
Okay, I found the answer myself! Yet again. Here it is:
I used Event org.springframework.webflow.action.AbstractAction.result(String eventId)
to which one can pass any fancy event names as strings and SWF detects them. Voila.
Upvotes: 3