Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is no way that we can tell from which Joget app the EmailTool is triggered. However, in a Process Tool's execute method, we can obtain the appDef object which contains the Joget app information.

Code Block
languagejava
linenumberstrue
public Object execute(Map properties) {
	.
	.
	AppDefinition appDef = (AppDefinition) properties.get("appDef");
	.
	.
	.
	String appInfoAndMessage = appDef.toString() + "- Something happened";
	LogUtil.error(EmailTool.class.getName(), ex, appInfoAndMessage);
	.
}

...