# Cases/work objects processing behavior and configuration in theme cosmos applications

**URL:** <https://forums.pega.com/t/cases-work-objects-processing-behavior-and-configuration-in-theme-cosmos-applications/1249>\
**Category:** Knowledge Share\
**Tags:** experience-designer, low-code-app-development, 8-6\
**Created:** [March 21, 2021, 6:41pm UTC](https://forums.pega.com/t/cases-work-objects-processing-behavior-and-configuration-in-theme-cosmos-applications/1249 "2021-03-21T18:41:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![durab](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@durab](https://forums.pega.com/u/durab)\
**Post date:** [March 21, 2021, 6:41pm UTC](https://forums.pega.com/t/cases-work-objects-processing-behavior-and-configuration-in-theme-cosmos-applications/1249/1 "2021-03-21T18:41:09Z")

</div>

In theme cosmos applications, case assignments are processed in ajax containers (OOTB platform feature). There are three ajax containers used and customized for cosmos specific behaviors. Below are the ajax containers and their usage:

1. ACPrimary – for processing the case assignments

 ![Primary ajax container.png](https://pega1.discourse-cdn.com/pega/original/2X/3/362ec94e1b93e74559702a66d667019854c7a993.png)

1. ACSecondary – for showing the preview panel

 ![Secondary ajax container.png](https://pega1.discourse-cdn.com/pega/original/2X/3/33205ae862a19c55dcadd9682bb13a331c233316.png)

1. ACTertiary – for showing the create modal and other work actions on dialog containers

 ![Tertiary ajax container.png](https://pega1.discourse-cdn.com/pega/original/2X/d/dd6d6c3bdec7a5e2f90d953725b6de9c67ca830e.png)

By default, when a case is opened, the assignments are processed in primary ajax container.

For case’s flow actions and local actions, these are also processed in ajax containers and are launched in tertiary ajax containers

 ![Launching case actions from preview panel in tertilary ajax container.png](https://pega1.discourse-cdn.com/pega/original/2X/5/52b1f7a21f02816f52c12281d7adead8879f5c89.png)

**Configuration:**

OOTB harness actions api from the platform has been enhanced to support theme cosmos behaviour. We have exposed a new parameter to process the case assignment in a ajax container.

Updated ootb action api’s:

1. pega.ui.HarnessActions.handleMenuAction
2. pega.ui.HarnessActions.addWorkFromActionsMenu

Targeting ajax containers:

|   
  
Action Api  
  
 |   
  
Parameter to target primary ajax container  
  
 |   
  
Parameter to target tertiary ajax container  
  
 |
| --- | --- | --- |
|   
  
pega.ui.HarnessActions.handleMenuAction  
  
  
  
  
  
 |   
  
mdcTarget : acprimary  
  
 |   
  
mdcTarget : actertiary  
  
 |
|   
  
pega.ui.HarnessActions.addWorkFromActionsMenu  
  
  
  
  
  
 |   
  
mdcTarget : acprimary  
  
 |   
  
mdcTarget : actertiary  
  
 |

 ![Ajax container configuration.png](https://pega1.discourse-cdn.com/pega/original/2X/8/853b7bebab3eae36d3f716da21b7810acaf60af4.png)

Note: By default, when flow and local actions are launched from preview panel, the assignments are processed in tertiary ajax containers.
