cancel
Showing results for 
Search instead for 
Did you mean: 

I defined custom action but it is not running properly.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

It must be used to compile with j2sdk using same version with the MII used j2sdk.

Former Member
0 Kudos

Hi Cemil,

Pls check document, I hv sent to your mail.

May be it helps.

Regards

Padma