on 03-18-2009 7:57 AM
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.
It must be used to compile with j2sdk using same version with the MII used j2sdk.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cemil,
Pls check document, I hv sent to your mail.
May be it helps.
Regards
Padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.