Simple Unpublish
The simple-unpublish workflow is provided out-of-the-box to support Publishing within Cloud CMS. When Publishing is enabled in a Project, it is added alongside the Simple Publish workflow.
The workflow has a single unpublish step. When the workflow enters this step, a Set Properties handler sets the _features/f:publishable/state property of the items in the workflow's payload to archived.
{
"id": "simple-unpublish",
"title": "Simple Unpublish",
"nodes": {
"start": {
"type": "start",
"transitions": {
"start": "unpublish"
}
},
"unpublish": {
"type": "passthru",
"title": "Unpublish",
"swimlane": "initiator",
"transitions": {
"next": "end"
},
"handlers": {
"ENTER": [
{
"type": "setProperties",
"config": {
"properties": [
{
"name": "_features/f:publishable/state",
"value": "archived"
}
]
}
}
]
}
},
"end": {
"type": "end"
}
}
}