Case type harness behaviours in Theme Cosmos
This document will explain about the different harness behaviours in theme cosmos when a Case type(work object/wo) is created and opened from different places.
1. Harness behaviour when wo is opened from links from other places
When ever a wo is opened from a link which is configured using "OpenWorkByHandle" action, it opens the work object in read only mode and the top level harness will be the review harness.
2. Harness behaviour when wo is opened after creation
When a wo is created, it will be opening in perform mode directly i.e in perform harness view and the assignment can be processed. This perform harness is opened inside an ajax container which is placed inside the review harness. The structure of harness will be like: 1. Top level harness will be Review harness
2. Perform harness will be inside of review harness
3. Harness behaviour when wo is opened from links and clicked on "GO" button from the assignment list
When a wo is opened from links which is configured using "OpenWorkByHandle" action, it opens the work object in read only mode and the top level harness will be the review harness. After clicking "GO" button, the assignment processing area opens in perform harness placed in an ajax container. Harness structure will be like:
1. Top level harness will be Review harness
2. Perform harness will be inside of review harness
4. Harness behaviour when wo is opened from "GO" button from the home todo worklist items
When a wo is opened from go button from home todo worklist, it opens the work object in perform mode directly and the harness will be the perform harness. This perform harness would not be placed inside the ajax container and there will only be one harness in the page. This is an expected behaviour, as the GO button uses "OpenAssignment" action api.
5. Harness behaviour when wo is opened from "GO" button from the home todo worklist items and clicked on Cancel button
When a wo is opened from go button from home todo worklist, it opens the work object in perform mode directly and the assignment processing area will be shown. The harness will be the perform harness. This perform harness would not be placed inside the ajax container and there will only be one harness in the page. When clicked on cancel button in this mode, the wo will be opened in the read only mode and the harness will be changed to review harness.
Case processing behaviour
Case assignments are processed perform mode and is launched in the ajax containers. Once the case is processed in the ajax container, it will be in "Review harness" only and not be confirm harness(as in UI kit applications). This is an expected behaviour from cosmos side
Note: In theme cosmos,
1) Links/buttons configured with "OpenWorkByHandle" action api opens the wo in review mode
2) Links/buttons configured with "OpenAssignment" action api opens the wo in perform mode