14 years, 8 months ago

Processes and events

Another day of talking to Nigel Green – thank you Skype! And some thinking around processes and their relationship with events. Again sounds innocent – but it seems as if both of us strongy event-oriented thinkers come to common ground when thinking about processes and orchestration – namely that while you might use low level messaging semantics for implementing processes, event modeling doesn’t really help when trying to model processes. However and here the lightbulb began to flicker dimly, the result of executing of a process or process step can become a source of events.We chose an example from the airline industry – and from our experiences of being travelers. Not from any great insights from the internals of the business. The focus was the check in process at the airport itself.Clearly we see interesting policies at different places and for different carriers. For example at Mumbai (at least time I went through there), they seal your bag with some kind of security strap. So it can be seen whether the bag has been tampered with. That is less common in the USA. However, at Miami International Airport when I went through a month or so ago, I saw the ability to wrap the bag in a kind of cling wrap. I presume that can be done elsewhere too. That is all by way of background.Airlines nowadays can and do charge fees for checking baggage. All of the rules require that checked bags undergo a security check. Bags are subject to weight limits. Passengers are subject to bag limits (no more than n per passenger). Ignoring further complexity like whether actually to collect the fees (elite passengers are exempt, for example) there are some quite interesting process decisions to be made.If the airline chooses to impose the bag fee immediately that the passenger offers the bag for checkin, then there may be some undo logic if the passenger decides not to check the bag after all. It is worse though. Imagine that the bag is too heavy. When is that discovered? For example if the passenger has checked in (and been charged) at a kiosk, then on presentation of the bag it is discovered to be too heavy so an extra collection is made – that could make the passenger decide not to check it after all, so a refund is in order. Or perhaps the passenger may decide to open it and remove some of the heavier items, and get it to the correct weight. That’s fine – but what if it has already been secured with tape or wrapped in a cling wrap. Kinda tricky to undo…Then there is security. Another opportunity for the passenger to open the bag and remove things if they should not be in checked baggage. And so it goes.Different airlines and different jurisdictions will implement the Policies – “maximize revenue for bags”, “make sure the passengers’ possessions are safe”, and “transport passengers safely” with different process paths. Those paths need to be orchestrated. It isn’t clear how an event network will really help that orchestration. In fact I would go so far as to say it complicates it. However at each step of the various process steps (or sub-processes), it would be very useful to spit out an event that provided useful (possibly actionable) information to trigger some other behaviors.For example, if during the security screen a weapon were found, we would expect an event to be raised to trigger a whole raft of other processes. We would be jumping outside a process domain into another domain. That of airport behaviors to criminal behaviors. So looks like a terrific event.Even the mundane events may be interesting to somebody. That a passenger decided not to check the bag after a fee was assessed can be helpful when looking at the behavior as a whole for market and planning purposes. Opportunities for process improvement abound.The weight of the checked luggage is also useful for “weight and balance” on the aircraft. Necessary so proper takeoff parameters can be computed, proper fuel calculations can be performed, etc. So the event raised as a result of successful baggage check-in is quite a handy event to have.So bottom line, it seems from this (and a whole raft of other possible examples) that we will typically see events being generated as a result of a process step happening – at least when in a process.Of course there are lots of other ways of generating events, we don’t need to formalize processes so that events can be generated. Relatively random behaviors give rise to events too.