Currently I am working on a travel booking portal where travelers can search and book a flight but user has the option to book online and pay later within specified time frame (say 2 hours). Here, I am thinking of implementing the workflow for order fulfillment
with following states.
OrderBooked (When user book flight online but has not paid yet)
OrderPaid (Later when user pays using credit card or any other payment mechanism)
OrderCanceled (If user doesnt pay in specified time)
OrderCompleted (in case user pay and ticket successfully generated)
Here I am no sure if we should implement WWF in this scenario as the life span of an order is very short (say 2- 4 hours). If payment is not done in this time span, order will be canceled. My understanding is that WWF is best suited for long running activities.
View Complete Post