Target pool name expression in throw message event has unexpected behaviour. bug?

Hi,

I’m using Bonita 621and I’m trying to use an expression to setup the target pool name of the message.
The throw event fails and in log I found the following cause:
Caused by: org.bonitasoft.engine.expression.exception.SExpressionDependencyMissingException: The context to evaluate the data ‘[pool]’ was not set
at org.bonitasoft.engine.data.instance.api.DataExpressionExecutorStrategy.evaluate(DataExpressionExecutorStrategy.java:114)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:122)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionsOfKind(ExpressionResolverServiceImpl.java:161)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionsFlatten(ExpressionResolverServiceImpl.java:104)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluate(ExpressionResolverServiceImpl.java:72)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluate(ExpressionResolverServiceImpl.java:66)
at org.bonitasoft.engine.execution.event.MessageEventHandlerStrategy.handleThrowMessage(MessageEventHandlerStrategy.java:188)
at org.bonitasoft.engine.execution.event.MessageEventHandlerStrategy.handleThrowEvent(MessageEventHandlerStrategy.java:165)
at org.bonitasoft.engine.execution.event.EventsHandler.handleThrowEvent(EventsHandler.java:228)
at org.bonitasoft.engine.execution.StateBehaviors.handleThrowEvent(StateBehaviors.java:647)

The same when I’m using a process variable.
Any suggestion?

Thank you,
Cristian

Yes, it is working

Hi,
can you confirm that it is working when you are using directly the name of the targeted pool?
If yes, I suppose that it is an engine bug. Please open a bug on our bugtracker.

Regards,