Examples of DbEntityOperation


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

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

    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

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

    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

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

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

    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
Copyright © 2018 www.massapi.com. 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.