Lesson 05: Optional Actions

Optional actions in Pega provide a powerful mechanism for enhancing flexibility and user experience within your applications. They allow you to offer users a choice of actions to perform, based on specific conditions or user preferences.

Key Features and Benefits:

  • Conditional Execution: Optional actions can be executed based on specific conditions, such as the value of a property, the user's role, or the current state of the case.
  • User Choice: Optional actions can present users with a choice of actions to perform, empowering them to take control of their work.
  • Enhanced Flexibility: Optional actions can make your applications more flexible and adaptable to changing requirements.
  • Improved User Experience: By providing users with choices, optional actions can improve their overall satisfaction with the application.

Common Use Cases:

  • Case Management: Offering users the option to escalate a case, request additional information, or close the case.
  • Customer Service: Providing customers with options to contact a representative, access self-service resources, or schedule a callback.
  • Sales: Allowing sales representatives to choose between different sales approaches or escalate a deal to a manager.
  • Human Resources: Offering employees the option to request time off, update their contact information, or enroll in benefits.

Implementation in Pega:

  • Create Optional Actions: Define optional actions within your case types or work parties.
  • Set Conditions: Specify the conditions under which each optional action should be available.
  • Design the User Interface: Create a user interface that clearly presents the available optional actions to the user.
  • Handle Action Selection: Implement logic to handle the user's selection of an optional action and execute the appropriate action.

Example:

  • Case Type: Customer Inquiry
  • Optional Actions: Escalate to Supervisor, Request Additional Information, Close Case
  • Conditions: Escalate to Supervisor if the inquiry is complex or has not been resolved within a certain timeframe.
  • User Interface: Present a dropdown menu or buttons to allow the user to select an optional action.
  • Action Handling: If the user selects "Escalate to Supervisor," the case is automatically assigned to a supervisor.

By effectively utilizing optional actions, you can create more engaging and user-friendly Pega applications that cater to the specific needs and preferences of your users.

Complete and Continue