Calling a Java action from Java

3
I try to call a Java action from another action with the code: Core.execute(this.getContext(), "Module.ActionName", params); Params is a <string, object=""> HashMap. That results in an exception that the "microflow" can't be found. I guess I'm using the wrong function because I don't want to call a microflow but a Java action. Anybody?
asked
1 answers
3

The method you are calling can only be used for microflows, as it uses named parameters (Java actions do not support this, they rely on parameter order). To call a Java action you can use the method Core.execute(IContext context, String actionName, Object ... params). Put the params in the same order as the Java actions expects and this should work.

answered