Process variable is unknown property:
Root Cause
org.flowable.engine.common.api.FlowableException: Unknown property used in expression: ${httpPost.responseStatusCode == 200}My configuration is this:
<?xml version="1.0" encoding="UTF-8"?><process id="timerProcess" name="Sample Process With Timer"> <startEvent id="theStart" /> <serviceTask id="httpPost" flowable:type="http"> <extensionElements> <flowable:field name="saveResponseParameters" stringValue="true" /> <flowable:field name="requestMethod" stringValue="POST" /> <flowable:field name="requestUrl" stringValue="http://localhost:8080/Mohre/restfulScheduleInterview" /> <flowable:field name="requestHeaders" stringValue="Content-Type: application/json" /> <flowable:field name="requestBody" expression="${sampleRequestBody}" /> <flowable:field name="failStatusCodes" stringValue="400, 404, 415, 500, 503" /> </extensionElements> </serviceTask> <serviceTask id="theTask" flowable:type="http"> <extensionElements> <flowable:field name="saveResponseParameters" stringValue="true" /> <flowable:field name="requestMethod" stringValue="GET" /> <flowable:field name="requestUrl" stringValue="http://localhost:8080/FlowableDemoSpring-0.0.1/try" /> <flowable:field name="requestHeaders" stringValue="Content-Type: application/json" /> <flowable:field name="failStatusCodes" stringValue="400, 404, 415, 500, 503" /> </extensionElements> </serviceTask> <endEvent id="theEnd" /> <sequenceFlow id="flow1" sourceRef="theStart" targetRef="httpPost" /> <sequenceFlow id="flow2" sourceRef="httpPost" targetRef="theTask"> <conditionExpression xsi:type="tFormalExpression"> <![CDATA[${httpPost.responseStatusCode == 200}]]> </conditionExpression> </sequenceFlow> <sequenceFlow id="flow3" sourceRef="httpPost" targetRef="theEnd"> <conditionExpression xsi:type="tFormalExpression"> <![CDATA[${httpPost.responseStatusCode > 200}]]> </conditionExpression> </sequenceFlow> <sequenceFlow id="flow4" sourceRef="theTask" targetRef="theEnd" /> </process>
Is it because httpPost task has ended and is not accessible anymore to other sequenceFlow or sub tasks?