Netflix glisten : a high level impl of the AWS SWF task oriented architecture

Hello,

Today, I will show you a piece of code to help you implement a solution under Netflix glisten.
This example launches a rocket, processing all the required tasks before firing the engines.
This framework can let you write scalable and fault tolerant workflow programs without writing complex software rules.
For example, launching a rocket should be as simple, intuitive as follows :

def preheatedEngines = getEnginesOperations().activities.preheating(preheatingTime)
getEvacuateOperations().activities.announceImmediateLaunch()
waitFor(getEvacuateOperations().activities.floorsCleared()){
getCloseOperations().activities.closeSound()
for (floor in 1..rocketFloors){
for (door in 1..doorsPerFloor){
if (getCloseOperations().activities.floorDoorsReadyToClose(floor, door)){
getCloseOperations().activities.closeDoor(floor, door)
}else{
throw new RocketLaunchException ()
}
}
}
waitFor(preheatedEngines){
for (engine in 1..engineNumber){
getEnginesOperations().activities.startEngine(engine)
}
getEnginesOperations().activities.throttle()
Promise.Void()
}
}

You can find that program enclosed. Good luck