Thursday, January 2, 2014

Sort Inbox Assignments by Start Date in Maximo 7.x

We need to override the getInboxAssignments() method by extending the  out of box class psdi.workflow.WFAssignmentSet to sort the records in descending order by start date.

The new Custom Mbo Set needs to be configured in the Database configuration of WFASSIGNMENT object. 

public class CustomWFAssignments extends WFAssignmentSet implements WFAssignmentSetRemote
{
     public void getInboxAssignments() throws RemoteException, MXException
         {
            super.getInboxAssignments();
            setOrderBy(" STARTDATE desc");
            reset();
         }
}

1 comment: