When you´re execute a BPEL. I dont how debug a error. To see inside of a execution engenner you could implement a listener
import java.util.Properties;
import org.apache.ode.bpel.evt.BpelEvent;
import org.apache.ode.bpel.evt.EventContext;
import org.apache.ode.bpel.iapi.*;
public class Listener implements BpelEventListener {
EventContext context;
@Override
public void onEvent(BpelEvent arg0) {
context =arg0.eventContext;
// TODO Auto-generated method stub
String evento ="";
evento = evento+ "--------------------------------\n";
evento = evento+ "evento: ["+arg0.eventName(arg0)+"] \n";
evento = evento+ "linea : ["+arg0.getLineNo()+"] \n";
evento = evento+ "tipo : ["+arg0.getType()+"] \n";
evento = evento+ getNamesVariables();
evento = evento+ "--------------------------------\n";
System.out.println(evento );
}
@Override
public void shutdown() {
// TODO Auto-generated method stub
;
System.out.println( "-------------shutdown---------------\n");
}
@Override
public void startup(Properties arg0) {
String evento ="";
// TODO Auto-generated method stub
evento = evento+ "--------------------------------\n";
evento = evento+ arg0 ;
evento = evento+ "--------------------------------\n";
System.out.println(evento );
}
private String getNamesVariables(){
String cadena="";
for(String variable :context.getVariableNames()){
cadena = cadena +" variable["+ variable+"]\n";
}
return cadena ;
}
}
build a class and copy inside folder
apache-tomcat-5.5.33\webapps\ode\WEB-INF\classes
if you dont create a file in ode-axis2.properties you to have to create in
apache-tomcat-5.5.33\webapps\ode\WEB-INF\conf
this information are in http://ode.apache.org/ode-execution-events.html
No comments:
Post a Comment