Yes, but that copies the result to the context, not to the result Map.
I just attached a patch to the Jira issue - take a look.
David E Jones wrote:
Are you using the result-to-context=true attribute on the action element
of your eca def?
-David
Adrian Crum wrote:
I figured out the problem. The service dispatcher uses the result Map
from the initial service invoked and it ignores the result Map of any
ECAs that are invoked. So, any values that an ECA service attempts to
return are ignored.
-Adrian
Adrian Crum wrote:
David,
https://issues.apache.org/jira/browse/OFBIZ-1236
-Adrian
David E Jones wrote:
Adrian Crum wrote:
One problem though - when the user doesn't have the required
permission, the fail message that is displayed is from the original
service, not the one invoked by the ECA. Any ideas for that?
I haven't looked at how you implemented it, but if the ECA returns a
message then it would be used. Chances are there is some niggly
little detail to look into and play with for this to work. If you're
having a hard time debugging this write up steps to reproduce and I
or someone can take a look at it.
-David