AnsweredAssumed Answered

<activiti:value> nested inside <activiti:formProperty> not validated

Question asked by rohitjain on Oct 24, 2014
Latest reply on Nov 3, 2014 by jbarrez
I've the following Activiti XML config file:


<?xml version="1.0" encoding="UTF-8"?>
<definitions id="taskAssigneeExample"
   xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
   targetNamespace="http://www.bpmnwithactiviti.org/loanrequest"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:activiti="http://activiti.org/bpmn">
<process id="xxxx">
    <userTask id="evaluateLoanRequest" name="Evaluate Loan Request"
         activiti:assignee="fozzie">
         <extensionElements>
            <activiti:formProperty id="customerName" name="Customer Name"
               expression="${loanApplication.customerName}" writable="false" />
            <activiti:formProperty id="income" name="Income of Customer"
               expression="${loanApplication.income}" writable="false" />
            <activiti:formProperty id="requestedAmount"
               name="Requested Loan Amount" expression="${loanApplication.requestedAmount}"
               writable="false" />
            <activiti:formProperty id="creditCheckOk"
               name="Outcome of Credit Check" expression="${loanApplication.creditCheckOk}"
               writable="false" />
            <activiti:formProperty id="requestApproved"
               name="Do you approve the request?" required="true" type="enum">
               <activiti:value id="true" name="Yes" />
               <activiti:value id="false" name="No" />
            </activiti:formProperty>
            <activiti:formProperty id="explanation" name="Explanation" />
         </extensionElements>
      </userTask>
    </process>
</definitions>


As you can see, the
<activiti:formProperty>
for requestApproved with type enum has nested
<activiti:value>
tag. But it is not validated in eclipse XML editor. The error message is:


cvc-complex-type.2.1: Element 'activiti:formProperty' must have no character or element information item [children], because the
type's content type is empty.


Can someone point me in right direction, as to where I've went wrong. I'm following Activiti in Action book examples.

Outcomes