Tuesday, 8 April 2014

Sort maximo start centre inbox assignments

Sorting Maximo 7.x start center inbox assignments :

I used below logic to set order by to due date (Descending) on start centre inbox assignments.

Create a custom class and extend WFAssignmentSet. Write a code in getInboxAssignment() method.

Sample Code:

package test.workflow;

import java.rmi.RemoteException;

import psdi.mbo.MboServerInterface;
import psdi.util.MXException;
import psdi.workflow.WFAssignmentSet;
import psdi.workflow.WFAssignmentSetRemote;

public class TestWFAssignmentsSet extends WFAssignmentSet implements WFAssignmentSetRemote
{
     public TestWFAssignments(MboServerInterface ms) throws RemoteException {
super(ms);
}

public void getInboxAssignments() throws RemoteException, MXException
         {
            super.getInboxAssignments();
            setOrderBy(" DUEDATE desc");
            reset();
         }
}

7 comments:

Unknown said...

Thankyou..!!

where would i give the name of this new custom class?

'CustomWFAssignments'
Is this a constructor?
It has no return type?
but the name is not same as class?

Unknown said...

please reply soon..!!

NJSR said...

Sorry for late reply and also thanks for correcting me.

I have updated 'CustomWFAssignments' to 'TestWFAssignments'.

New custom class path to be replaced in database configuration --> WFASSIGNMENT table --> Class field.

Unknown said...

Hi Thank you for replying...!!!

This code has succesfuly worked for me to sort inbox/assignment in descending order based on start date.

But now i can not sort it in ascending order... as when i click on start date to sort it.it would fire getInboxAssignment() and it will sort it in desc order again..

any solution??

waiting for ur reply?

Anonymous said...

This worked..!!

but I cant sort start center inbox/assignment date in ascending order anymore.

every time it will reload getInboxassignment() and will set it in desc order.

Unknown said...

This worked..!!

but I cant sort start center inbox/assignment date in ascending order anymore.

every time it will reload getInboxassignment() and will set it in desc order.

NJSR said...

Sorry I haven't tried in that way.

Maximo SOAPUI error javax.xml.ws.WebServiceException

SOAPUI error while sending payload to below url (in cluster environment) http://localhost:9080/meaweb/services/MXASSET Error : <f...