Field Injection Expressions Not Calculating


I am writing a listener that implements CaseExecution Listener that looks like this.

package com.thinxsoftware.bpm.server;

import java.util.logging.Logger;

import org.camunda.bpm.engine.delegate.CaseExecutionListener;
import org.camunda.bpm.engine.delegate.DelegateCaseExecution;
import org.camunda.bpm.engine.delegate.Expression;

public class TestFieldExpressions implements CaseExecutionListener {
	private final static Logger LOGGER = Logger.getLogger("LISTENER-EVENT");
	private Expression feeling;
	private Expression person;

	public void notify(DelegateCaseExecution caseExecution) throws Exception {
		String value1 = (String) feeling.getValue(caseExecution);
		String value2 = (String) person.getValue(caseExecution); + " " + value2);



When logging the values I am getting

INFO LISTENER-EVENT - ${feeling} ${person}

instead of the expected output of Happy Boy which uses two variables I set in an early listener.

The listener causing the issue is fired by the milestone, and the variables are set by the case plan.

Check at the modeller or XML, injection type should be expression. Probablym you have it as a string/text.