AnsweredAssumed Answered

How to configure session EJBs in an Activiti Engine

Question asked by archsas on May 17, 2016
Latest reply on May 26, 2016 by jbarrez
Hi
I am running the example callEjbExampleProcess.bpmn20.xml on spring suite 3.7.3 internal web browser and trying to invoke ToUppercaseBean, but When I start the process I get to  see
Unknown Property used in expression
${ToUpperCaseBean.toUpperCase(var)} warning .

The bpmn20.xml file running on the tomcat web server on my STS internal web browser contents are:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
<process id="callEjbExample" name="Call EJB example">

    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="callEjb" />

    <serviceTask id="callEjb"
                 activiti:expression="${ToUpperCaseBean.toUpperCase(var)}"
                 activiti:resultVariableName="var" />
    <sequenceFlow id="flow2" sourceRef="callEjb" targetRef="outputResult" />

    <scriptTask id="outputResult" scriptFormat="groovy">
        <script>
            out:println "uppercased version = " + var
        </script>
    </scriptTask>
    <sequenceFlow id="flow3" sourceRef="outputResult" targetRef="theEnd" />

    <endEvent id="theEnd" />
</process>
</definitions>

I think this might be due to some missing configuration, but not sure. I am using  STS 3.7.3 with Maven to build and install.
Please help me resolve this.

Outcomes