I would like to improve the monitoring of my integration. To do this, I need to get the contextID used in monitoring tables, from the IS service. I don’t find which methods I must use to get It. The Idea is to use the ContextID as a key to join my specific logging table with the webMethods one.
Hi,
To get the contextID you can explore the services under pub.monitor.service.*.May be you cane use pub.monitor.service:getList.
Or in other way you can set your services with custom ContextID which may be specific to your service(like transaction ID)and can link this ID with your logging table.
For this you can use pub.flow:setCustomContextID.
IDataUtil.put(pipelineCursor_1, “contextStack”, contextStack);
}catch(Exception ex){
//ServiceException sx = new ServiceException(ex);
}
// pipeline
IDataUtil.put(pipelineCursor_1, "currentContextID", currentContextID); // Assuming that caller is looking for its context ID. currentContextID extracted is the context ID for the java service, not the caller service.
IDataUtil.put(pipelineCursor_1, "currentParentID", currentParentID);