}
return res;
}
public Object process(final String iType, final String iName, final Object... iParameters) {
final OComposableProcessor process = (OComposableProcessor) OProcessorManager.getInstance().get(iType);
if (process == null)
throw new OProcessException("Process type '" + iType + "' is undefined");
final OBasicCommandContext context = new OBasicCommandContext();
if (iParameters != null) {
int argIdx = 0;
for (Object p : iParameters)
context.setVariable("arg" + (argIdx++), p);
}
Object res;
try {
res = process.processFromFile(iName, context, false);
} catch (Exception e) {
throw new OProcessException("Error on processing '" + iName + "' field of '" + getName() + "' block", e);
}
return res;