# How to add pending state of workflow in CMS

**URL:** <https://community.bloomreach.com/t/how-to-add-pending-state-of-workflow-in-cms/3545>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [December 6, 2022, 8:31am UTC](https://community.bloomreach.com/t/how-to-add-pending-state-of-workflow-in-cms/3545 "2022-12-06T08:31:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeevanaTeja](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeevanateja/32/1487_2.png) [@JeevanaTeja](https://community.bloomreach.com/u/JeevanaTeja)\
**Post date:** [December 6, 2022, 8:31am UTC](https://community.bloomreach.com/t/how-to-add-pending-state-of-workflow-in-cms/3545/1 "2022-12-06T08:31:17Z")

</div>

Hi all,

I want to add a new document variant in CMS workflow  
E.g.: -  
workflow state: Draft–\> **Pending** → Publish–\> Unpublish  
I need your help to achieve the above

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [December 6, 2022, 3:25pm UTC](https://community.bloomreach.com/t/how-to-add-pending-state-of-workflow-in-cms/3545/2 "2022-12-06T15:25:26Z")

</div>

You should start with the documentation:

> **[SCXML Workflow Execution - Bloomreach Experience Manager (PaaS/Self-Hosted) -...](https://xmdocumentation.bloomreach.com/library/concepts/workflow/scxml-workflow-execution.html)**
>
> The fast and flexible on-premise or PaaS headless CMS

These are some projects that may give some inspiration:  
[https://bloomreach-forge.github.io/embargo/](https://bloomreach-forge.github.io/embargo/)

> <https://github.com/bloomreach-forge/review-workflow/blob/master/README.md>

---

<div class="post-metadata">

**Author:** ![JeevanaTeja](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeevanateja/32/1487_2.png) [@JeevanaTeja](https://community.bloomreach.com/u/JeevanaTeja)\
**Post date:** [December 21, 2022, 9:57am UTC](https://community.bloomreach.com/t/how-to-add-pending-state-of-workflow-in-cms/3545/3 "2022-12-21T09:57:50Z")

</div>

Thanks jasper, Gone through the above documentation.

Like we’ve draft and publish states in CMS. I need to configure a Custom state called pending  
The exact requirement is  
When we publish a video from authoring and generally it takes time to process the video, during that time it should show Video in pending state. Any interaction with this item should show/indicate to the author that the content is under machine processing and can’t be interacted.  
Can I achieve the above through SCXML, if yes please tell how to configure and does it require any backend code(java) changes?

Your help is very much appreciated.

Thanks Jeevana
