AnsweredAssumed Answered

Error: unknown property used in expression.

Question asked by mhp on Mar 20, 2012
Latest reply on Mar 20, 2012 by ronald.van.kuijk
Hi,

I have my  XXXX.bpmn20.xml file as shown below

<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:activiti="http://activiti.org/bpmn"
  targetNamespace="Examples">

<process id="SProcess">     
<startEvent id="start"/>
<sequenceFlow id="flow1" sourceRef="start" targetRef="createApplication" />  
<serviceTask id="createApplication" activiti:expression="#{printer.printMessage()}" />
<sequenceFlow id="flow2" sourceRef="createApplication" targetRef="end" /> 
<endEvent id="end" />    
</process>

</definitions>


and I have bean as shown below

public class Printer {
public void printMessage()
{    System.out.println("hello world………………"); 
}
}


Error:

unknown property used in expression.
cannot resolve identifier printer.

Also i am unable to access the bean…..

Can anybody help why it is showing this error.

Outcomes