Loading Audio...

Listen to Lesson
0:00
  • Speed 0.5x
  • Speed 0.75x
  • Speed 1x
  • Speed 1.25x
  • Speed 1.5x
  • Speed 2x
  • Brian
  • Caris

Setting Up Clarity's Content Workflow

Liferay workflows define content review and approval processes. So far, you've explored the key concepts, components, and benefits of Liferay workflows. Now, it's time to create and test your own workflow definition. In this article, you'll set up a basic, custom workflow for Clarity Vision Solutions' content and assets.

Exercise: Creating a Workflow for Job Listings

Liferay workflows provide the flexibility to customize approval processes for specific organizational needs. Clarity requires a custom approval workflow for their job listings, ensuring new positions are reviewed by specific Human Resources roles before publication. Here you’ll create a new workflow based on Liferay’s default Single Approver definition as the Clarity Admin user.

Here you can view and manage available workflow definitions or create your own.

  1. Sign in as Clarity Admin.
    • Username: admin@clarityvisionsolutions.com
    • Password: learn
  2. Open the Global Menu (Global Menu), go to the Applications tab, and click Process Builder.
    Here you can view and manage available workflow definitions or create your own. 
  3. Click Actions (Actions) for Single Approver and select Duplicate.

     

  4. For title, enter Single Approver for Job Listings and click Duplicate.
    This directs you to the Workflow Designer UI where you can update the assignee and notifications for the workflow’s review task.
  5. Click the review node to access configuration options in the side panel.
  6. Under Assignments, click the assignee configuration.

     

  7. Click Delete (Delete) for all roles except for these three:
    • Administrator
    • Site Administrator
    • Site Owner
  8. Click New Section to add another assignee with these details:
    • Role Type: Regular
    • Role Name: Human Resource Specialist

       

  9. Click Back () next to Assignments to return to the node’s configuration options.
  10. Under Notification, click the notification configuration
  11. For Review Notification, replace the Template field’s content with this:
    ${userName} sent you a new Job Listing to review.
    

     

  12. Click Update

Great! Now that you’ve finished creating Clarity’s custom workflow, you’re ready to apply it to their content.

Exercise: Applying the Workflow to the Job Listings Folder

You can apply Liferay workflows at various levels to ensure each type of content follows your desired approval process. Clarity wants to apply their new workflow only to job listings in the HR asset library. Here you’ll set this up as the Clarity Admin user.

  1. Open the Global Menu (Global Menu), go to the Applications tab, and click Asset Libraries
  2. Go to the HR library and click Web Content.
  3. Click Actions (Actions) for the Job Listings folder and select Edit.
  4. Expand Structure Restrictions and Workflow and select the second option.

     

  5. Click Choose Structure and select the Job Listing structure.
    This limits the folder to the chosen web content structure.
  6. Select Single Approver for Job Listings in the drop-down menu.
    This applies the workflow to the folder’s contents.


     
  7. Click Save.

Now that you’ve applied the workflow, you can test it to ensure it functions as expected.

Exercise: Testing Clarity’s Workflow for Job Listings

Clarity wants to confirm their new workflow functions as expected for both content creators and reviewers. Here you’ll submit a new job listing as Clara Murphy and then approve it as Harper Roberts.

  1. Sign in as Clara Murphy.
    • Username: clara.murphy@clarityvisionsolutions.com
    • Password: learn
  2. Open the Global Menu (Global Menu), go to the Applications tab, and click Asset Libraries
  3. Go to the HR library and click Web Content
  4. Go to the Job Listings folder and click New
  5. Enter Associate Marketing Specialist for the title and fill out all other required fields.
  6. Click Submit for Workflow and select Submit for Workflow with Permissions.


     
  7. Click Submit for Workflow to confirm.
  8. Return to the Job Listings folder and confirm the article’s status is ‘Pending’.
    If there is a filter that only displays Approved articles, click Clear to remove it.


     
  9. Log out and then sign in as Harper Roberts
    • Username: harper.roberts@clarityvisionsolutions.com
    • Password: learn

      She should have a new notification for the review task.


       
  10. Click the user profile icon, go to Notifications, and click the message.



    This redirects you to the review task’s details.
    While you can access the review task through the notification, you also can access all workflow tasks in the My Workflow Tasks page.
  11. Click the user profile icon and click My Workflow Tasks.
  12. Go to the Assigned to My Roles tab to see the pending workflow task.

     

  13. Click Actions (Actions) for the workflow task and select Assign to Me.
  14. Enter a comment and click Done.
    This assigns the task to Harper Roberts and redirects you to the Assigned to Me tab. Here she can review and approve or reject the Clara Murphy’s article.
  15. Click the workflow task and click View () to review the article’s content in a new tab.

     

  16. Click View in Context to view the article’s display page.

     

  17. Return to the workflow task tab, click Actions (Actions) for the task, and select approve.


     
  18. Enter a comment and click Done.
    The web content article is now approved.
  19. Log out and sign in as Clara Murphy.
    • Username: clara.murphy@clarityvisionsolutions.com
    • Password: learn
  20. Return to the Job Listings folder and verify the article’s status is ‘Approved’.

     

  21. Go to the Open Positions page in Clarity’s site and verify the new article appears.
     

     

Congratulations! You have successfully set up and tested Clarity’s custom workflow for job listings.

Conclusion

Liferay's robust workflow engine empowers content managers to design and apply automated approval processes. By leveraging these features, you can streamline review tasks, improve communication, and enhance overall content governance.

Next, you’ll learn about workflow metrics you can use to improve your processes.

loading-knowledge-label