Hello,
First of all I am still pretty new to camunda and was also not part of development/deployment of our applications.So please bear with my not so complete knowledge of camunda
I am trying to implement a way of modifying a processInstance into a tool but seem to be having some troubles.
Modifying a processInstance through the Camunda Cockpit seems to be working fine, but when trying to do so through Postman or through a Java Http Request I receive a 405 MethodNotAllowed
Here is the response I am getting in Postman:
I dont think the endpoint is the problem, because I can access other methods just fine(getting, deleting, creating a processInstance for example). Thats why I’m also not sure whether it might be an authorization issue since I’m guessing if it were I wouldn’t be able to do the other things.
I have also tried to use the JavaAPI ProcessEngine but I am experiencing similar problems.
Getting,deleting,creating Instances works but modifying them seems to be a problem yet again.
This is the exception I am getting in java
Exception in thread “main” org.camunda.bpm.engine.OptimisticLockingException: ENGINE-03005 Execution of ‘UPDATE PropertyEntity[next.dbid]’ failed. Entity was updated by another transaction concurrently.
at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.concurrentUpdateDbEntityException(EnginePersistenceLogger.java:135)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.handleOptimisticLockingException(DbEntityManager.java:499)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.checkFlushResults(DbEntityManager.java:451)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperations(DbEntityManager.java:367)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperationManager(DbEntityManager.java:325)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flush(DbEntityManager.java:297)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:208)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.close(CommandContext.java:137)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:116)
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.camunda.bpm.engine.impl.db.DbIdGenerator.getNewBlock(DbIdGenerator.java:49)
at org.camunda.bpm.engine.impl.db.DbIdGenerator.getNextId(DbIdGenerator.java:41)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.ensureHasId(DbEntityManager.java:688)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.insert(DbEntityManager.java:570)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionManager.insertExecution(ExecutionManager.java:46)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.insert(ExecutionEntity.java:1480)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.createNewExecution(ExecutionEntity.java:322)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.createExecution(ExecutionEntity.java:258)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.createExecution(ExecutionEntity.java:248)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.createExecution(ExecutionEntity.java:96)
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.createConcurrentExecution(PvmExecutionImpl.java:497)
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.executeActivitiesConcurrent(PvmExecutionImpl.java:830)
at org.camunda.bpm.engine.impl.cmd.AbstractInstantiationCmd.instantiateConcurrent(AbstractInstantiationCmd.java:342)
at org.camunda.bpm.engine.impl.cmd.AbstractInstantiationCmd.execute(AbstractInstantiationCmd.java:283)
at org.camunda.bpm.engine.impl.cmd.ActivityBeforeInstantiationCmd.execute(ActivityBeforeInstantiationCmd.java:63)
at org.camunda.bpm.engine.impl.cmd.ActivityBeforeInstantiationCmd.execute(ActivityBeforeInstantiationCmd.java:32)
at org.camunda.bpm.engine.impl.cmd.ModifyProcessInstanceCmd.execute(ModifyProcessInstanceCmd.java:80)
at org.camunda.bpm.engine.impl.cmd.ModifyProcessInstanceCmd.execute(ModifyProcessInstanceCmd.java:40)
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:107)
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.camunda.bpm.engine.impl.ProcessInstanceModificationBuilderImpl.execute(ProcessInstanceModificationBuilderImpl.java:251)
at org.camunda.bpm.engine.impl.ProcessInstanceModificationBuilderImpl.execute(ProcessInstanceModificationBuilderImpl.java:242)
at camunda2.Camunda2.main(Camunda2.java:43)