There is a possiblility. You **Since Axon.ivy 4.3** you can Start a subprocess start sub processes like this:
ISubProcessStart object;
if (className != null) {
object = getSubProcess(className);
if (object == null) {
setProcessDataField(context, STATUS_MESSAGE_PROPERTY, StatusMessage.MESSAGE_TYPE_ERROR);
return in;
}
results= SubProcessRunner.exec(object, param);
}
private ISubProcessStart getSubProcess(String className){
//Create filter.
SubProcessSearchFilter filter = SubProcessSearchFilter.create()
.setProcessPathPattern(className)
.toFilter();
//Result list of processes. picking first only.
List<ISubProcessStart> foundSubProcesses = SubProcessRunner.findSubProcessStarts(filter);
if (foundSubProcesses.isEmpty()) {
return null;
}
return foundSubProcesses.get(0);
}
You need to handle the exceptions within the subprocesses. You can't handle it to the parent class.