Skip to Content
0
Former Member
Mar 18, 2009 at 07:57 AM

I defined custom action but it is not running properly.

21 Views

Hi,

I defined custom action but it is not running properly.

I deployed in MII (System Management --> Custom Actions)

When i use it as an action in a transaction error below generated.

Errors

[ERROR]: STEP EXCEPTION (Custom_Action_0) : Item 'Custom_Action_0' is not an Action

[ERROR]: STEP EXCEPTION (Custom_Action_0) : Item 'Custom_Action_0' is not an Action

Custom action code is below.

package com.wipro.action;

import com.sap.xmii.xacute.actions.ActionReflectionBase;

import com.sap.xmii.xacute.core.ILog;

import com.sap.xmii.xacute.core.Transaction;

/**

*

  • @author cemil.bozlagan

*/

public class CustomAction extends ActionReflectionBase {

private String strFirstInput;

private String strSecondInput;

private String strOutString;

public CustomAction() {

strFirstInput = "";

strSecondInput = "";

strOutString = "";

}

@Override

public String GetIconPath() {

return "/com/wipro/action/resources/icons/CustomAction.png";

}

@Override

public void Invoke(Transaction trx, ILog ilog) {

try {

strOutString = strFirstInput + strSecondInput;

/*

// This varaible is defined in ActionReflectionBase class

*/

_success = true;

} catch (Exception e) {

_success = false;

}

}

public String getFirstInput() {

return strFirstInput;

}

public void setFirstInput(String strFirstInput) {

this.strFirstInput = strFirstInput;

}

public String getSecondInput() {

return strSecondInput;

}

public void setSecondInput(String strSecondInput) {

this.strSecondInput = strSecondInput;

}

public String getOutString() {

return strOutString;

}

@Override

public boolean isConfigurable() {

return false;

}

}

How can i solve this problem?

Thanks.