Maximo Wire - The IBM Maximo Help & Discussion Forum
February 08, 2012, 04:03:42 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: How to determine an action name from a common action class? (Maximo 5.2)  (Read 1465 times)
0 Members and 1 Guest are viewing this topic.
yegorkin
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« on: October 01, 2009, 09:06:38 am »

How to determine a workflow action name from a common workflow action class?

I want to have a common tiny Java class instead of a dozen of similar classes.

Is it possible?

There is no useful parameters in the interface:
  public boolean applyCustomAction(WFMboRemote mbo, java.lang.String memo, java.util.Date actiondate);

By the way I can get Node name in workflow role class:

  public MboRemote evaluateCustomRole(Mbo mbo) throws MXException, RemoteException {
        WFAssignment wfassign = (WFAssignment) mbo;
        String nodeTitle = wfassign.getNodeAttribute("title"); // get Node name for decisions

So I can create only 1 role class.
Logged
yegorkin
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« Reply #1 on: October 09, 2009, 09:16:32 am »

No fate?

By the way I can get WFCondition node title:

  public boolean evaluateCustomCondition(WFMboRemote mbo) throws MXException, RemoteException {
    if (mbo instanceof WFMboRemote) {
      try {
        // get condition node title
        String nodeTitle = ((WFNodeDetailRemote)mbo.getWorkflowActions().getMbo(0)).getNode().getString("title");
        if (debugMode) System.out.println("WFCondition title: "+nodeTitle);
        //
...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!