AnsweredAssumed Answered

The processing instruction target matching '[xX][mM][lL]'...

Question asked by ajucelves on Dec 3, 2010
Latest reply on Dec 3, 2010 by frederikheremans1
When I try to deploy a process wich process definition file contains the tag conditionExpression it thows the following exception:

org.activiti.engine.ActivitiException: couldn't parse 'com/abc/stfr/activiti/TransferOutProcessTestCase.testTransferOutProcess.bpmn20.xml': The processing instruction target matching "[xX][mM][lL]" is not allowed.

I'm trying to make a conditional sequence flow.

I do the things based on demo activiti-engine-examples.

My process definition file is:
<process id="transferout" name="transferout">
        <startEvent id="theStart"/>

        <sequenceFlow id="flow1" sourceRef="theStart" targetRef="at_approver1"/>

        <userTask id="at_approver1" name="at approver1"/>

        <sequenceFlow id="flow2" sourceRef="at_approver1" targetRef="at_approver2">
            <conditionExpression type="tFormalExpression">${amount == 230}</conditionExpression>
        </sequenceFlow>

        <sequenceFlow id="flow3" sourceRef="at_approver1" targetRef="theEnd">
            <conditionExpression type="tFormalExpression">${amount == 400}</conditionExpression>
        </sequenceFlow>

        <userTask id="at_approver2" name="at approver2"/>
 
        <sequenceFlow id="flow7" sourceRef="confirmTransfer" targetRef="theEnd"/>

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

I found out that it throws thar exception because of conditionExpression tag.
Can you please help me with this error.
Thanks.

Outcomes