Skip to Content
0
Former Member
Nov 17, 2008 at 04:30 PM

Problems creating custom action block MII 12.0

113 Views

Hi Guys,

All the test are running under MII 12.0.4 build 120

I have this java class:

package br.com.test.demo;

import com.sap.xmii.xacute.actions.ActionReflectionBase;
import com.sap.xmii.xacute.core.ILog;
import com.sap.xmii.xacute.core.Transaction;

public class DemoActionBlock extends ActionReflectionBase {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7873508537613286862L;

	public DemoActionBlock() {
		super();
	}
	
	public String getResultado() {
		return _resultado;
	}

	public void setResultado(String r) {
		_resultado = r;
	}

	public void Invoke(Transaction transaction, ILog log) {
		log.info("Entrou no método Invoke");
		_resultado = "Oi";
		_success = true;
		log.info("Saindo do método Invoke");
	}
	
	public boolean isConfigurable() {
		return false;
	}
	
	private String _resultado;
		
}

A very simple class, and I'm trying to deploy it in MII 12.0

I changed this sample in many ways, but the same error occurs always:

* [INFO ]: Execution Started At: 17:32:47
    * [ERROR]: STEP EXCEPTION () : Invalid Assignment Target: [DemoActionBlock.Resultado]
    * [ERROR]: STEP EXCEPTION (Teste_2_0) : Invalid Assignment Target: [DemoActionBlock.Resultado]
    * [ERROR]: STEP EXCEPTION (Sequence) : Item 'DemoActionBlock' is not an Action
    * [ERROR]: TRANSACTION EXECUTION TERMINATED
    * [INFO ]: Execution Completed At: 17:32:47 Elapsed Time was 0 mS

I believe that the problem may be in my xml file:

<?xml version="1.0" encoding="UTF-8"?>
<ComponentCatalog>
	<Category Name="DemoActionBlock" Description="Custom Action Block">
		<Component Type="Action" Name="DemoActionBlock" Description="" Label="DemoActionBlock" 
			ClassName="br.com.test.demo.DemoActionBlock" 
			AssemblyName="custom2.jar" HelpFileName=""></Component>
	</Category>
</ComponentCatalog>

But I don't know what is the error exactly.

I would appreciate some help.

Thanks in advance,

Pedro Sena

Edited by: Pedro Sena on Nov 17, 2008 6:34 PM