Search This Blog

Monday, June 9, 2014

Action Class Sample In Maximo

In order to create an action class, you should extend the ActionCustomClass class. Here is a sample code for you.

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package custom.actions;
import java.rmi.RemoteException;
import psdi.common.action.ActionCustomClass;
import psdi.mbo.MboRemote;
import psdi.util.MXException;
public class customActionClass implements ActionCustomClass {
public customActionClass() {
}
public void applyCustomAction(MboRemote mbo, Object aobj[])
       throws MXException, RemoteException {
   //You should put your custom code here
}
}

Now, we will create an action under System Configuration -> Platform Configuration -> Actions. Choose Custom Classin Type field and then give our classpath.

No comments:

Post a Comment

Default Communication Template for each application - Maximo

  Add the dialog from Library to the SR and WOTRACK application. So, the application xml overwrites the Library xml. Now the SR is using the...