WCM Content Workflow Statuses

While working with WCM content, there is a concept of workflows that a content can go through.
WCM Content creators can setup a draft content and publish or expire it. This status is also available programmatically as workflow statuses.

You can use the following two methods:

  • WorkflowedDocument.getWorkflowStatus()
  • WorkflowedDocument.getPendingWorkflowStatus()

Here is a list of WCM Content Workflow Statuses and how to use them in Java.

 

Content Workflow Status

In many cases, we will have to use a workflow status check to ensure the content we are working with is published. Please see the example below.

Leave a Reply

Your email address will not be published. Required fields are marked *