Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi @all,
recently i stumbled upon a triggerscript, which seems to be a standard-script which comes with Integrity ootb. Its the Script "dependentStatus.js". In this script is existing following code:
var mc = MessageCatalog.getCatalog("mks.ci.server.engine.TriggerCache");
log ("MessageCatalog: " + String(mc));
// Otherwise it is an error. Accumulate an error message.
var thisMsg = mc.getMessage("RELATED_ISSUE_ERROR_P1") + " " + relIssue.getID() + " " + mc.getMessage("RELATED_ISSUE_ERROR_P2") + " " + dependentStatesName + mc.getMessage("RELATED_ISSUE_ERROR_P3") + " " + relIssue.getState();
So for me it seems that there are a MessageCatalog, and within this catalog there are some sentence building blocks. But i didn't find anything about this catalog in the documentation. Also i didn't find anything about the command "getCatalog" in the trigger-documentation. Where can i get any info about this?
Thanks, Jens
Hi Jens-Uwe Nixdorf,
i have that trigger on my systems but mine are without the part that you quoted. MessageCataloge might be a custom build java program from PTC. It should be in your server install directory under data/java.
Something should be either in jars or classes.
Regrads,
Dominik
MessageCatalog is internal to Integrity and not part of any external published/supported API, so that's why there is no information about it.
Hi Michael Chatel,
thanks for your answer. So could you please answer me (or could you please ask some responsible person at PTC): what is so confidential in a library of messages? Sometimes trigger are producing very cryptic error-messages, and the user doenst get an idea what was going wrong since he clicked at "apply". For this it would be great if we would have some access to these messages. I cannot see any system critical functionality in it...
Kind regards, Jens