Skip to content

Instantly share code, notes, and snippets.

@darwindarak
Created June 29, 2021 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darwindarak/76bf93fa9884c3cd8b6a2656026958b1 to your computer and use it in GitHub Desktop.
Save darwindarak/76bf93fa9884c3cd8b6a2656026958b1 to your computer and use it in GitHub Desktop.
Dye Lot State
Dye Lot State
Waiting to be Planned
plan -> Waiting for Material
Waiting for Material
receive material -> Waiting to Dye
Waiting to be Replanned
plan -> Waiting to Dye
Waiting to Dye
dye -> Dyeing
Dyeing
pass to oiling -> Waiting to Oil
pass to dry -> Drying
fail color -> Waiting for Adjustment
fail level -> Waiting to be Replanned
Waiting for Adjustment
adjust -> Waiting to be Replanned
fail -> Waiting to be Planned
Waiting to Oil
oil -> Oiling
Oiling
dry -> Drying
Drying
complete -> Complete
Complete
send back for adjustment -> Waiting to be Replanned
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