(I’m on wM 7.2.1)
I developed a Java Service allowing to change the “include Pipeline” property to “always” for a given service name.
However, I have a persistence issue. Indeed, the java service change the property in the code, BUT not in the node.ndf file. Consequently, when I reload the package, the property comes back to the previous value…
This is the code :
int audit = 0;
IDataCursor pipelineCursor = pipeline.getCursor();
String serviceName = IDataUtil.getString(pipelineCursor, "serviceName");
pipelineCursor.destroy();
NSNode nsNode = Namespace.current().getNode(serviceName);
if (nsNode instanceof NSService){
NSService serviceNode = (NSService)nsNode;
AuditSettings auditSettings = serviceNode.getAuditSettings();
auditSettings.enableDocumentAudit(2);
serviceNode.setAuditSettings(auditSettings);
audit = auditSettings.isDocumentAuditEnabled();
}
pipelineCursor = pipeline.getCursor();
IDataUtil.put(pipelineCursor, "audit", audit);
pipelineCursor.destroy();
Do you have a solution ?
#Integration-Server-and-ESB#webMethods-General#webMethods