Almost done
As I found execution method is same for all kind of objects/processes, firstly we need to define new object in followed structure:
@ \\ ? pointer
domsrvr:sa \\ process
TOP \\ target object
0 \\ hash id, 0 for new
0 \\ was explained in spel docs published by @daniel-bighelini
to get this structure you can call: printf((string)any_object);
ok then,
my process called z_test and I registered new target object TEST_MSG in slump.
spel:
void zobj() {
object newobj;
int msg_i;
newobj = (object)((string)"@|z_test|TEST_MSG|0|0");
printf((string)newobj);
send_wait(5, newobj, "test");
}
We receiving message from callback interface in msg_NX format, then it can be converted to BPObject format.
Seems I have missed something because my _instance didn't trigger receive function and I process input message manually,
also I didn't understand yet how to reply back to SDM, so I defined timeout in send_wait in spell.
java:
slump.register_msg("TEST_MSG", new CALL_BACK() {
@Override
public void handleIOErr() {
jlog.info("handleIOErr");
}
@Override
public void recv(msg_NX msg_nx) {
BPMessage bp = new BPMessage(msg_nx, _instance);
jlog.info(bp.getMethod());
}
});
Regards,
cdtj