Customizing the listing of process instances customizing-the-listing-of-process-instances
The process instance list is displayed in the Tracking tab of AEM Forms workspace.
In the process instance list, for each process instance, AEM Forms workspace shows some properties of that instance. The following properties are available for each process instance. These properties are stored as attributes in the process instance component model and are available for use in its view and template.
Example:
To display the description
property of the process instance in the process instance card, perform the following steps.
-
Follow the Generic steps for AEM Forms workspace customization.
-
Do the following:
- Copy /libs/ws/js/runtime/templates/processinstance.html to/apps/ws/js/runtime/templates/, if it does not exist. Click Save All.
- Add process description div with class = ‘processDescription’ inprocessinstance.html.
code language-none <div class="processDescription" title="<%= description%>"><%= description%></div>
-
Do the following:
- Open /apps/ws/js/registry.js for editing.
- Search and replace
text!/lc/libs/ws/js/runtime/templates/processinstance.html
withtext!/lc/
apps/ws/js/runtime/templates/processinstance.html.
-
The above changes may require an update to the CSS file by adding an entry in the style sheet /apps/ws/css/newStyle.css in the following way:
code language-css .processinstance .processDescription { <!--Dummy values, need to be configured by user as per requirement as well as user can add or delete any property depending upon requirement--> width : 250px; font-size : 11pt; padding : 2px; }