Advertisement

Responsive Advertisement

Java Code to get the Pipeline Debug Property of the IS Flow service

Raw Java Code to get IS Flow service audit property

Hi Folks ,

Here is a sample code to get the audit property of the flow services. This service is in raw format , you need to modify it according to your requirements.


public static final void getAuditPropertyPerService(IData pipeline)
throws ServiceException {
IDataCursor pipelineCursor = pipeline.getCursor();
String serviceName = IDataUtil.getString( pipelineCursor, "serviceName");
String packageName="";
NSName localNSName=NSName.create(serviceName);
NSService localNSService=Namespace.current().getService(localNSName);
int auditEnable=localNSService.getAuditOption(); //Give the audit enable property value
AuditSettings as=new AuditSettings();
as=localNSService.getAuditSettings();  // to get the logOn and Include Pipeline property of the audit property
IData asData = IDataFactory.create();
asData=as.getAsData();
// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
IDataUtil.put( pipelineCursor_1, "asData", asData );
pipelineCursor_1.destroy();
}


Enjoy Reading , If you have any Question related to webMethods please comment below , I will try to answer the questions.Please Subscribe for latest update on the blogs

Post a Comment

2 Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Because I am getting Null pointer exception for flat file schemas as input

    ReplyDelete