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

Error 'Unable to connect to server' is displayed when you run a task that prompts for server restart

  Problem On Windows system, when you select a task that requires a server restart in Administration Services UI, and run that task, the tas...