cancel
Showing results for 
Search instead for 
Did you mean: 

Error while submit form data

glorfindeil
Champ in-the-making
Champ in-the-making
Hello everyone!
Can anybody help me? Googling is not helped.

I sent to form/form-data next payload:

<javascript>
{"taskId":"50016","properties":[{"id":"documentReviewedLocal","name":"documentReviewedLocal","type":"boolean","value":true,"readable":true,"writable":true,"required":false,"enumValues":[]},{"id":"comment","name":"comment","type":"string","readable":true,"writable":true,"required":false,"enumValues":[]}]}
</javascript>

I'm trying to submit new values of form variables. Than i get error.

org.activiti.engine.ActivitiOptimisticLockingException: ProcessInstance[50008] was updated by another transaction concurrently
   at org.activiti.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:875) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]
   at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:614) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]
   at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:212) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]
   at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:138) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]


Variables are recieved by GET method to the same service, User task is


<userTask id="usertask1" name="Check document" activiti:assignee="admin">
      <extensionElements>
        <activiti:formProperty id="documentReviewedLocal" name="documentReviewedLocal" type="boolean" variable="documentReviewed" default="false"></activiti:formProperty>
        <activiti:formProperty id="comment" name="comment" type="string" variable="comment"></activiti:formProperty>
      </extensionElements>
    </userTask>


What is wrong in my implementation? Thanks.
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi glorfindeil,

jUnit test would help a lot.
https://forums.activiti.org/content/sticky-how-write-unit-test
Can you create one?

Regards
Martin

glorfindeil
Champ in-the-making
Champ in-the-making
Hi Martin!

I can not reproduce this bug in Junit case, that meas I have mistake in my software. I think this is somehing like doubly asynhronyous call to same service from JavaScript, or etc.
Thanks for the help!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.