Package org.camunda.bpm.engine.impl.db.entitymanager.operation

Examples of org.camunda.bpm.engine.impl.db.entitymanager.operation.DbEntityOperation


  }

  public void failedOperation(DbOperation operation) {
    if (operation instanceof DbEntityOperation) {

      DbEntityOperation entityOperation = (DbEntityOperation) operation;
      if(JobEntity.class.isAssignableFrom(entityOperation.getEntityType())) {
        // could not lock the job -> remove it from list of acquired jobs
        acquiredJobs.removeJobId(entityOperation.getEntity().getId());
      }

    }
  }
View Full Code Here


    ExecutionEntity newExecution = new ExecutionEntity();
    newExecution.setId("someId");
    newExecution.setParentId(existingId);

    DbEntityOperation insertOperation = new DbEntityOperation();
    insertOperation.setOperationType(DbOperationType.INSERT);
    insertOperation.setEntity(newExecution);

    Context.getCommandContext()
      .getDbSqlSession()
      .executeDbOperation(insertOperation);
View Full Code Here

    dbOperationManager.addOperation(bulkOperation);
    return bulkOperation;
  }

  protected void performEntityOperation(CachedDbEntity cachedDbEntity, DbOperationType type) {
    DbEntityOperation dbOperation = new DbEntityOperation();
    dbOperation.setEntity(cachedDbEntity.getEntity());
    dbOperation.setOperationType(type);
    dbOperationManager.addOperation(dbOperation);
  }
View Full Code Here

  }

  public void failedOperation(DbOperation operation) {
    if (operation instanceof DbEntityOperation) {

      DbEntityOperation entityOperation = (DbEntityOperation) operation;
      if(JobEntity.class.isAssignableFrom(entityOperation.getEntityType())) {
        // could not lock the job -> remove it from list of acquired jobs
        acquiredJobs.removeJobId(entityOperation.getEntity().getId());
      }

    }
  }
View Full Code Here

    dbOperationManager.addOperation(bulkOperation);
    return bulkOperation;
  }

  protected void performEntityOperation(CachedDbEntity cachedDbEntity, DbOperationType type) {
    DbEntityOperation dbOperation = new DbEntityOperation();
    dbOperation.setEntity(cachedDbEntity.getEntity());
    dbOperation.setOperationType(type);
    dbOperationManager.addOperation(dbOperation);
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.db.entitymanager.operation.DbEntityOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.