cancel
Showing results for 
Search instead for 
Did you mean: 

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

rohitjain
Champ in-the-making
Champ in-the-making
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.
8 REPLIES 8

rohitjain
Champ in-the-making
Champ in-the-making
Hi there. Any updates on the issue above? I'm facing this issue in all my activiti XML files in eclipse. Though building the project with maven works fine. Also, I am able to deploy it on Activiti Explorer. It works as expected. So why that error?

jbarrez
Star Contributor
Star Contributor
Which version of the Eclipse designer is this? The latest?

rohitjain
Champ in-the-making
Champ in-the-making
I've got version 5.15.0. Got it from updates sites.

jbarrez
Star Contributor
Star Contributor
Hmm, i copy pasted your file into an Eclipse (Luna) with the same version of the designer installed … but I don't see any error.

rohitjain
Champ in-the-making
Champ in-the-making
Hmm.. Strange that is. BTW, I'm using STS 3.6.2.RELEASE version. I tried to update the softwares, but everything is up to date.

jbarrez
Star Contributor
Star Contributor
Might be then STS which is adding in extra XML stuff. What about a plain Eclipse?

rohitjain
Champ in-the-making
Champ in-the-making
Aha!! No issues in Eclipse Luna. Seems to be with STS only.

jbarrez
Star Contributor
Star Contributor
Hmm very odd. Can't imagine why extra XML validation (and incorrect?) would be added in STS