Hello,
if you modify the document within your Plugin could you add the following lines of code at the beginning of your Plugin method.
public static void nyPluginMethod(BusinessDocument doc, ...) {
if (doc.getState() == BusinessDocument.READ) {
doc.modify();
}
...
}
This could solve your problem because documents which are created from a ‘query’ (action or directcommand with type=“query”) have invalid timestamps. The timestamp is correctly set when the document changes its internal state from ‘READ’ to ‘MODIFIABLE’.
If this code does not change the behavior, please make a print out the timestamp of your document within your plugin.
println(“timestamp of document '” + doc.getDocumentId() + "’ : " + doc.timestamp);
Then, I have to analyze this problem.
Bye,
Christian.
#webMethods#API-Management#Tamino