Wednesday, March 19, 2008

Compensation in BPMN

How would users model a compensation in Oracle's BPMN tool? Apologies David for the delay, here you go:
In this example, if the BPMN activity "credit check" fails for some reason, the process refunds the credit card charges.

8 comments:

Anonymous said...

Vishal,
This is incorrect. Compensation intermediate event just links an activity to its compensating (undoing) activity. It is not a sequence flow, just an association to a single activity. The compensation occurs only when either a compensation signal is thrown by a compensation end event or by a cancel intermediate event attached to the boundary of the surrounding transactional subprocess. In your diagram, Check Credit would not have a compensating activity. Something like Charge Customer might have a compensating activity Credit Customer, and the signal to compensate might be thrown after some condition such as item is out of stock.
--Bruce

Vishal Saxena said...

Bruce,
I am not sure if I understand your point. Once a compensation event is triggered, what would happen next is entirely a modeler choice. Will it result in triggering a diferent sequence flow or will it come and join the regular flow are two equally plausible and correct alternatives.
I agree that instead of "check credit", "charge customer" is probably a better example. However, once the compensating activity "Credit Customer" is triggered, there are two alternatives:
1. We end the process - this is similar to the use case you are targeting - Compensation end event.
2. There is also another use case, where in , we can "check with partners" if they have it in stock, or look at my supply chain and "create a backlog order" for this item. This might be a more common example for complex enterprise processes.

The second use case is what I have tried to address in this example.

combattery84 said...

Dell Y9943 battery
Dell Inspiron 1521 battery
Dell Inspiron 510m battery
Dell Latitude D500 battery
Dell Latitude D520 battery
Dell GD761 battery
Dell NF343 battery
Dell D5318 battery
Dell G5260 battery
Dell Inspiron 9200 battery
Dell Latitude C500 battery
Dell HD438 Battery
Dell GK479 battery
Dell PC764 battery
Dell KD476 Battery
Dell Inspiron 1150 battery
Dell inspiron 8500 battery
Dell Inspiron 4100 battery
Dell Inspiron 4000 battery
Dell Inspiron 8200 battery
Dell FK890 battery
Dell Inspiron 1721 battery
Dell Inspiron 1300 Battery
Dell Inspiron 1520 Battery
Dell Latitude D600 Battery
Dell XPS M1330 battery
Dell Latitude D531N Battery
Dell INSPIRON 6000 battery
Dell INSPIRON 6400 Battery
Dell Inspiron 9300 battery
Dell INSPIRON 9400 Battery
Dell INSPIRON e1505 battery

combattery84 said...

Dell Y9943 battery
Dell Inspiron 1521 battery
Dell Inspiron 510m battery
Dell Latitude D500 battery
Dell Latitude D520 battery
Dell GD761 battery
Dell NF343 battery
Dell D5318 battery
Dell G5260 battery
Dell Inspiron 9200 battery
Dell Latitude C500 battery
Dell HD438 Battery
Dell GK479 battery
Dell PC764 battery
Dell KD476 Battery
Dell Inspiron 1150 battery
Dell inspiron 8500 battery
Dell Inspiron 4100 battery
Dell Inspiron 4000 battery
Dell Inspiron 8200 battery
Dell FK890 battery
Dell Inspiron 1721 battery
Dell Inspiron 1300 Battery
Dell Inspiron 1520 Battery
Dell Latitude D600 Battery
Dell XPS M1330 battery
Dell Latitude D531N Battery
Dell INSPIRON 6000 battery
Dell INSPIRON 6400 Battery
Dell Inspiron 9300 battery
Dell INSPIRON 9400 Battery
Dell INSPIRON e1505 battery

Nikola said...

Humans and dolphins are the only species that have sex for pleasure.progressive auto insurance

Nikola said...

If you keep a Goldfish in the dark room, it will eventually turn white. auto insurance quote

Nikola said...

There wasn't a single pony in the Pony Express, just horses.laptops review

Anonymous said...

top [url=http://www.c-online-casino.co.uk/]casino bonus[/url] brake the latest [url=http://www.casinolasvegass.com/]free casino games[/url] unshackled no store bonus at the foremost [url=http://www.baywatchcasino.com/]loosen casino
[/url].