Hello, i would like to know if anyone knows, how to call a java service from itself
(like a recursion of a method), i try in several way but it didn’t work. This is the service, it is simple.
IDataCursor pipelineCursor = pipeline.getCursor();
Integer cant = (Integer)IDataUtil.get( pipelineCursor, “entrada” );
IDataUtil.put(pipelineCursor, “salida”, cant);
pipelineCursor.destroy();
the idea is to call this java service, from the same java service. Thank you.
Put it as a static method under shared code and call it like a regular Java method.
Some reading material from internet:
[URL]http://danzig.jct.ac.il/java_class/recursion.html[/URL]
Cheers,
Akshith
ok, i going to try like you say, and i’ll tell if it work. thank you.
Hello, it i didn’t work, i put like you said but didn’t work i show you the service under shared code, perhaps it something wrong.
public static int service(int x){
IDataCursor pipelineCursor = pipeline.getCursor();
int a=0;
a++;
if(a<3){
Integer cant = (Integer)IDataUtil.get( pipelineCursor, “cant” );
IDataUtil.put(pipelineCursor, “exit”, cant);
pipelineCursor.destroy();
}
return x;
}