Skip to content

Instantly share code, notes, and snippets.

@gagamil
Created March 27, 2019 18:28
Show Gist options
  • Save gagamil/82fd3d070a5714580f7699d9df49ce43 to your computer and use it in GitHub Desktop.
Save gagamil/82fd3d070a5714580f7699d9df49ce43 to your computer and use it in GitHub Desktop.
ShipperOrder
ShipperOrder
ready -> BBTycoon
BBTycoon
Work on SOs
delivery task created -> DeliveryTask
DeliveryTask
approve -> BBMinerva
cancel -> ShipperOrder
manual carrier user assignation -> PendingJob
BBMinerva
Work on prioritization
offers created -> MetaOffer
MetaOffer
carrier user accepts offer -> PendingJob
all carrier users reject offer -> DeliveryTask
manager cancels MetaOffer -> DeliveryTask
PendingJob
executor starts Job -> ShipmentJobInProgress
pending job cancelled -> DeliveryTask
ShipmentJobInProgress
shipment delivery -> JobDelivery
standstill -> Standstill
incident -> Incident
Standstill
continue -> ShipmentJobInProgress
Incident
continue -> ShipmentJobInProgress
cancel active job -> DeliveryTask
JobDelivery
continue -> ShipmentJobInProgress
all shipment delivered -> JobTermination
JobTermination
close paperwork -> JobFinish
JobFinish
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment