cancel
Showing results for 
Search instead for 
Did you mean: 

Form validation error

swathirajan
Champ in-the-making
Champ in-the-making
Hi,

I am creating a medium complexity workflow in Activiti cloud app.
I used inline forms in the workflow.

When I tried to validate the form, it shows that my form have some validation error.

Usually, it will show a small red "x" mark near the form field which needs attention and to be fixed.

However, in my inline form, there is no "x" mark indication of error in the form.

Still, it shows that the form has validation errors.

I am not sure how to overcome this issue.

Please help.
7 REPLIES 7

gdharley
Elite Collaborator
Elite Collaborator
The validation error will be identified in the REST response to the /editor/validate call.
Use your favorite Browser Dev tools (e.g. Firebug) to monitor the response to this call and it will tell you what the validation error is.

swathirajan
Champ in-the-making
Champ in-the-making
<img src="http://4.bp.blogspot.com/-W85GLOkh5FU/Vlk4eFIuhkI/AAAAAAAAAPc/Hntxd0c-veE/s1600/Workflow%2BError.jpg" alt="Mountain View" style="width:600px;height:400px;">

swathirajan
Champ in-the-making
Champ in-the-making
Hi gdharley,

Thank you for the solution.
I have found out the problem and resolved it.
Now the forms and process model have no validation errors.

I created the app for my process and tried to publish it.
Unfortunately, the problem arises again.

The Activiti is not allowing me to publish and throws an error as:
Model "Sample Process" has validation errors and cannot be added to an app definition. Open the model in the editor to see more details about the validation error(s).

I am not sure why this happens.
When my entire process and its forms have no error, I couldnt spot out the error thrown while publish.

Can you please help me with this

trademak
Star Contributor
Star Contributor
Hi,

Also this REST call should return the validation errors found in the model. If you can't see the any problems, would it be possible to share the app so I can try to reproduce it?

Best regards,

swathirajan
Champ in-the-making
Champ in-the-making
I have uploaded my app file under Google Drive. (Sample.zip)
Below is the link to access:
https://drive.google.com/file/d/0BxNY8JusUN2AZnhZemNDWlBTd1E/view?usp=sharing

vasile_dirla
Star Contributor
Star Contributor
Hmm,
the app you published here does really contains errors.
for example the UserTasks foes not have the outgoing node:

<code>
"outgoing": [
        {
          "resourceId": "sid-9075EE47-4F4D-4E89-AD71-B17E1A47CB48"
        }
      ]
</code>

please try to create a new process and see if it failsd again for you.
if so try to add the elements one by one and try to deploy after each modification (in order to detect when exactly the process becomes malformed)

Until now I'm not able to reproduce it, but I'll try some more cases.

swathirajan
Champ in-the-making
Champ in-the-making
Hi Dirla,

I tried to implement your suggested method.
The form I created has fields such as - Multiline textbox, Dropdown, Date, Person and Attachment.

I published the workflow with every single field in the form.
I am able to publish for all the form fields but Attachment.

The 'Attach' form field does not allow me to publish.

Can you tell me why this is happening and solution?