Skip to content

Instantly share code, notes, and snippets.

@davidkpiano
Created January 27, 2020 14:53
Show Gist options
  • Save davidkpiano/0610a806ec82cac788faff8573578034 to your computer and use it in GitHub Desktop.
Save davidkpiano/0610a806ec82cac788faff8573578034 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
Machine({
"initial": "ingest",
"states": {
"ingest": {
"initial": "idle",
"states": {
"idle": {
"on": {
"DMP.NEWDATACLAIM": "pending"
}
},
"pending": {
"on": {
"DMP.PROCESSREADY": "success",
"DMP.ERROR": "failure"
}
},
"failure": {},
"success": {
"type": "final"
}
},
"onDone": "transform"
},
"transform": {
"initial": "pending",
"states": {
"pending": {
"on": {
"RESOLVE": "success",
"ERROR": "failure"
}
},
"failure": {},
"success": {
"type": "final"
}
},
"onDone": "featureEngineering"
},
"featureEngineering": {
"initial": "idle",
"states": {
"idle": {
"on": {
"Kroger.FAS.FeatureEngineering.Started": "pending"
}
},
"pending": {
"on": {
"Kroger.FAS.FeatureEngineering.Completed": "success",
"Kroger.FAS.FeatureEngineering.Failed": "failure"
}
},
"failure": {},
"success": {
"type": "final"
}
},
"onDone": "training"
},
"training": {
"initial": "idle",
"states": {
"idle": {
"on": {
"Kroger.FAS.Training.Started": "pending"
}
},
"pending": {
"on": {
"Kroger.FAS.Training.Completed": "success",
"Kroger.FAS.Training.Failed": "failure"
}
},
"failure": {},
"success": {
"type": "final"
}
},
"onDone": "scoring"
},
"scoring": {
"initial": "idle",
"states": {
"idle": {
"on": {
"Kroger.FAS.Scoring.Started": "pending"
}
},
"pending": {
"on": {
"Kroger.FAS.Scoring.Completed": "success",
"Kroger.FAS.Scoring.Failed": "failure"
}
},
"failure": {},
"success": {
"type": "final"
}
}
}
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment