AnsweredAssumed Answered

Error while submit form data

Question asked by glorfindeil on Mar 12, 2016
Latest reply on Mar 14, 2016 by glorfindeil
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.

Outcomes