cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with formProperty enum type in actviti explorer 5.12

suseno
Champ on-the-rise
Champ on-the-rise
Hi ,

Currently i'm having a problem with form property  .. enum type..

        <activiti:formProperty id="polregstatus" name="status periksa" type="enum">
      <activiti:value id="true" name="Approve" />
          <activiti:value id="false" name="Reject" />
</activiti:formProperty>

when i import bpmn  file  in model workspace menu in activiti explorer and deploy  in activiti server  ..  activiti explorer  only show empty combo box .

i try to export the process and found that the formproperty has changed.. into like this
        <activiti:formProperty id="polregstatus" name="status periksa" type="enum">
</activiti:formProperty>

Why this issue happened ?


thanks







28 REPLIES 28

frederikherema1
Star Contributor
Star Contributor
Can you re-post your thread using "code" blocks between "[" and "]", seems like the forum clipped out your code-examples. If the enum-values are indeed cleared, this is an issue in the modeler and should be addressed.

yahekia
Champ in-the-making
Champ in-the-making
Hello! I am having the same problem, here is the code of my xml

<extensionElements>
  <activiti:formProperty name="defects" id="defects" required="true" type="long"/>
  <activiti:formProperty name="Defects" id="defects_enum" required="true" type="enum">
     <activiti:value name="With defects" id="true"/>
     <activiti:value name="Without defects" id="false"/>
  </activiti:formProperty>
</extensionElements>

I think it is a bug, I have tried to import a demo one, and it doesn`t appear.

yahekia
Champ in-the-making
Champ in-the-making
Ok, same file imported from java, works perfectly. Where I report it.

avc
Champ in-the-making
Champ in-the-making
I am having the same problem how can i fix it ?

frederikherema1
Star Contributor
Star Contributor
We have a unit-test for this, which uses:


<activiti:formProperty id="direction" type="enum">
          <activiti:value id="left" name="Go Left" />
          <activiti:value id="right" name="Go Right" />
          <activiti:value id="up" name="Go Up" />
          <activiti:value id="down" name="Go Down" />
        </activiti:formProperty>

Can you check the deployed file (look in database) actually contains the form-property-values in XML?

avc
Champ in-the-making
Champ in-the-making
This is before i import the process

<code>
    <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>
        <activiti:formProperty id="income" name="Income" expression="${loanApplication.income}" writable="false"></activiti:formProperty>
        <activiti:formProperty id="requestAmount" name="Request loan amount" expression="${loanApplication.requestedAmount}" writable="false"></activiti:formProperty>
        <activiti:formProperty id="creditCheckOk" name="outcome of credit check" expression="${loanApplication.creditCheckOk}" writable="false"></activiti:formProperty>
   <activiti:formProperty id="direction" type="enum">
          <activiti:value id="left" name="Go Left" />
          <activiti:value id="right" name="Go Right" />
          <activiti:value id="up" name="Go Up" />
          <activiti:value id="down" name="Go Down" />
        </activiti:formProperty>
        <activiti:formProperty id="explanation" name="Explanation"></activiti:formProperty>
      </extensionElements>
    </userTask>
</code>

This is if i export the process

<code>
    <userTask id="evaluateLoanRequest" name="Evaluate loan request" activiti:exclusive="false" activiti:assignee="fozzie">
      <extensionElements>
        <activiti:formProperty id="customerName" name="Customer Name" expression="${loanApplication.customerName}"></activiti:formProperty>
        <activiti:formProperty id="income" name="Income" expression="${loanApplication.income}"></activiti:formProperty>
        <activiti:formProperty id="requestAmount" name="Request loan amount" expression="${loanApplication.requestedAmount}"></activiti:formProperty>
        <activiti:formProperty id="creditCheckOk" name="outcome of credit check" expression="${loanApplication.creditCheckOk}"></activiti:formProperty>
        <activiti:formProperty id="direction" type="enum"></activiti:formProperty>
        <activiti:formProperty id="explanation" name="Explanation"></activiti:formProperty>
      </extensionElements>
    </userTask>
</code>

frederikherema1
Star Contributor
Star Contributor
Okay, so there seems to be a problem when exporting the XML. Can you create a JIRA-issue, describing this problem?

avc
Champ in-the-making
Champ in-the-making
where

trademak
Star Contributor
Star Contributor
I just tested the activiti-bpmn-converter module and it works fine there. Can it be that you open the model in the Modeler and save it there first? Because then it's an issue in the Modeler code.

Best regards,