In our project, we need to call an event process inside a Runnable
public void callEventProcess(String eventProcessName) {
// HACK: work around to call the event process in Runnable
DialogRuntime dialogRuntime = DialogRuntimeManager.getDialogRuntime(Ivy.request());
dialogRuntime.callEventProcess(eventProcessName, new EventObject(this));
}
The class DialogRunTime
and DialogRunTimeManager
come from package ch.ivyteam.ivy.dialog.execution
. The jar
file of that package is removed since Ivy Designer 8.0.9, however, I've found the jar
file in Ivy Designer 8.0.8 (I haven't verified if other Ivy Designer versions include that jar
). The problem is, Ivy Designer 8.0.8 doesn't include that jar
into Axon.ivy Libraries
dependencies. This leads to compilation error.
I've worked around this by manually copying the jar
from local maven repository into WEB-INF/lib
directory of Ivy Designer 8.0.8. However our Teach Lead doesn't agree with this solution and demand a proper answer from me.
I've checked all of the Ivy Designer release notes from 6.0 to 9.0 and found nothing.
Given the code and the situation, please help to suggest a better way to call event process from Runnable, which is supported by Ivy Designer natively, or better yet, the answer for the reason why the ch.ivyteam.dialog.exec_.jar
file is not included in Axon.ivy Libraries
.