Creating state flows
This section lists the best practices recommended for state flows. These are provided as tips and guidance, rather than complete instructions.
-
First, consider all possible processes required to review a product. If certain product types require a distinct flow, you need to create a new state flow that triggers only for those product types.
-
Always display the full state flow on the product details page, for a better user experience.
-
Change the master layout of product details pages to display a state machine viewer and an entity details component that shows state flow-specific properties, such as assignee.
-
If the reviewer group is different for each product, use dynamic user groups.
For detailed instructions for configuring page components, see Page components
Adapt a state flow to specific content types
Different content types might need different state flows. For instance, technical marketing content might need a different review flow than corporate marketing content.
To adapt a state flow to specific content types:
-
If your flow is not related to a built-in content type, create a new content type.
-
Create an action of Type Start state machine to start the new state flow.
-
Create then configure a trigger with Entity creation and Entity modification as Objective.
-
Set a trigger condition to apply the new state flow to specific content types. Make sure to set a condition to not trigger the default CMP content approval for these specific content types.
-
Add the new action as a trigger action of Type Post.