Unknown property used in delegate expression of service task

Found the solution by adding this:

 Map<Object, Object> beans = new SpringBeanFactoryProxyMap(applicationContext);
        config.setExpressionManager(new ProcessExpressionManager(beans));