Class WorkflowIdUITableFilter

java.lang.Object
com.orchestranetworks.ui.UITableFilter
com.apgar.common.lib.filter.WorkflowIdUITableFilter

public class WorkflowIdUITableFilter extends UITableFilter
A custom UI table filter designed to keep only records that were modified or created within the current workflow workspace. If this filter is applied outside of the workflow context, it will not filter any records, and all records will be displayed.

To implement this filter, include it in the XSD file for the dataset under the relevant table as follows:

 <xs:complexType name="SampleTable_Type">
     <xs:annotation>
         <xs:documentation xml:lang="en-US">
             <osd:label>Sample Table</osd:label>
         </xs:documentation>
         <xs:appinfo>
             <osd:table>...</osd:table>
             <osd:uiFilter class="com.apgar.common.lib.filter.WorkflowIdUITableFilter">
                 <workflowIdFieldPath>./workflowId</workflowIdFieldPath>
                 <label>Modified Records Search</label>
             </osd:uiFilter>
         </xs:appinfo>
     </xs:annotation>
 </xs:complexType>
 

The workflowIdFieldPath parameter specifies the path of the workflow ID in the record. If omitted, the filter defaults to checking the path: ./tracking/workflowId.

Author:
APGAR Consulting
  • Constructor Details

    • WorkflowIdUITableFilter

      public WorkflowIdUITableFilter()
  • Method Details

    • getWorkflowIdFieldPath

      public String getWorkflowIdFieldPath()
      Returns the string representation of the workflow ID field path.
      Returns:
      the workflowIdFieldPath
    • setWorkflowIdFieldPath

      public void setWorkflowIdFieldPath(String workflowIdFieldPath)
      Sets the path of the workflow ID field.
      Parameters:
      workflowIdFieldPath - the workflowIdFieldPath to set
    • addForEdit

      public void addForEdit(UITableFilterResponseContext context)
      Adds editable forms that allow users to set and customize the filtering. By default, this does nothing.
      Specified by:
      addForEdit in class UITableFilter
      Parameters:
      context - the context of the UI table filter response
    • handleApply

      public void handleApply(UITableFilterRequestContext context)
      Handles the filtering request when the "Apply filter" button is selected.
      Specified by:
      handleApply in class UITableFilter
      Parameters:
      context - the context of the UI table filter request