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"
<process id="xxxx">
    <userTask id="evaluateLoanRequest" name="Evaluate Loan Request"
            <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 id="explanation" name="Explanation" />

As you can see, the
for requestApproved with type enum has nested
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.