cancel
Showing results for 
Search instead for 
Did you mean: 

Error: unknown property used in expression.

mhp
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
This is a plain java class not a cdi/spring/enterprise java bean… So no wonder it is unknown…

If using cdi, try annotating it with @Named