I’m creating a code reviewer and one of the features I’m trying to implement is checking the service’s input type (EG: String, Document, etc.). I tried to use wm.server.services:serviceInfo, but it doesn’t have any information about the service input. Is there any functionality that could return this information to me?
I would also like to know if there is a service that provides information about fields inside a document or adapter.
Thanks in advance for the replies, have a nice day!
NSName nsSvc = NSName.create(serviceName);
BaseService baseService = Namespace.getService(nsSvc);
NSSignature sig = baseService.getSignature();
for(NSField nsField: sig.getInput().getFields()){
if(nsField.getRecordTypeString().equals("IData")){
// this would be your block for document field
}
}
During the implementation of the java code, we came across the error shown in the screenshot. Apparently, the getService method doesn’t exist in the imported class. Would it be possible to use another method or class?