Shopify · Arazzo Workflow
Shopify Archive a Stale Product
Version 1.0.0
Read a product and branch on its status, archiving it only when it is still active.
Provider
Workflows
archive-stale-product
Archive a product only if it is currently active, otherwise short circuit.
Reads the product, archives it when active, and reads it back; ends cleanly when the product is already archived.
1
getProduct
getProduct
Read the product and branch on its status so an already-archived product is left untouched.
2
archiveProduct
updateProduct
Set the active product's status to archived.
3
confirmProduct
getProduct
Read the product back to confirm it is archived.