Codota Logo
DecisionRequirementsDefinitionEntity
Code IndexAdd Codota to your IDE (free)

How to use
DecisionRequirementsDefinitionEntity
in
org.camunda.bpm.engine.impl.dmn.entity.repository

Best Java code snippets using org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionRequirementsDefinitionEntity (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

@Override
protected DmnDecisionRequirementsGraphImpl createDmnElement() {
 return new DecisionRequirementsDefinitionEntity();
}
origin: camunda/camunda-bpm-platform

protected void resetPreviousDecisionRequirementsDefinitionId() {
 previousDecisionRequirementsDefinitionId = null;
 ensurePreviousDecisionRequirementsDefinitionIdInitialized();
}
origin: camunda/camunda-bpm-platform

public static boolean isDecisionRequirementsDefinitionPersistable(DecisionRequirementsDefinitionEntity definition) {
 // persist no decision requirements definition for a single decision
 return definition.getDecisions().size() > 1;
}
origin: camunda/camunda-bpm-platform

@Override
public ResourceDefinitionEntity getPreviousDefinition() {
 DecisionRequirementsDefinitionEntity previousDecisionDefinition = null;
 String previousDecisionDefinitionId = getPreviousDecisionRequirementsDefinitionId();
 if (previousDecisionDefinitionId != null) {
  previousDecisionDefinition = loadDecisionRequirementsDefinition(previousDecisionDefinitionId);
  if (previousDecisionDefinition == null) {
   resetPreviousDecisionRequirementsDefinitionId();
   previousDecisionDefinitionId = getPreviousDecisionRequirementsDefinitionId();
   if (previousDecisionDefinitionId != null) {
    previousDecisionDefinition = loadDecisionRequirementsDefinition(previousDecisionDefinitionId);
   }
  }
 }
 return previousDecisionDefinition;
}
origin: camunda/camunda-bpm-platform

@Override
protected List<DecisionDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) {
 List<DecisionDefinitionEntity> decisions = new ArrayList<DecisionDefinitionEntity>();
 // get the decisions from the deployed drd instead of parse the DMN again
 DecisionRequirementsDefinitionEntity deployedDrd = findDeployedDrdForResource(deployment, resource.getName());
 if (deployedDrd == null) {
  throw LOG.exceptionNoDrdForResource(resource.getName());
 }
 Collection<DmnDecision> decisionsOfDrd = deployedDrd.getDecisions();
 for (DmnDecision decisionOfDrd : decisionsOfDrd) {
  DecisionDefinitionEntity decisionEntity = (DecisionDefinitionEntity) decisionOfDrd;
  if (DecisionRequirementsDefinitionDeployer.isDecisionRequirementsDefinitionPersistable(deployedDrd)) {
   decisionEntity.setDecisionRequirementsDefinitionId(deployedDrd.getId());
   decisionEntity.setDecisionRequirementsDefinitionKey(deployedDrd.getKey());
  }
  decisions.add(decisionEntity);
 }
 if (!DecisionRequirementsDefinitionDeployer.isDecisionRequirementsDefinitionPersistable(deployedDrd)) {
  deployment.removeArtifact(deployedDrd);
 }
 return decisions;
}
origin: camunda/camunda-bpm-platform

public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) {
 if (decisionRequirementsDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionRequirementsDefinition.getTenantId())) {
  throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision requirements definition '"+ decisionRequirementsDefinition.getId() + "'");
 }
}
origin: camunda/camunda-bpm-platform

protected DecisionRequirementsDefinitionEntity findDeployedDrdForResource(DeploymentEntity deployment, String resourceName) {
 List<DecisionRequirementsDefinitionEntity> deployedDrds = deployment.getDeployedArtifacts(DecisionRequirementsDefinitionEntity.class);
 if (deployedDrds != null) {
  for (DecisionRequirementsDefinitionEntity deployedDrd : deployedDrds) {
   if (deployedDrd.getResourceName().equals(resourceName)) {
    return deployedDrd;
   }
  }
 }
 return null;
}
origin: camunda/camunda-bpm-platform

public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) {
 getAuthorizationManager().checkAuthorization(READ, DECISION_REQUIREMENTS_DEFINITION, decisionRequirementsDefinition.getKey());
}
origin: camunda/camunda-bpm-platform

@Override
public ResourceDefinitionEntity getPreviousDefinition() {
 DecisionRequirementsDefinitionEntity previousDecisionDefinition = null;
 String previousDecisionDefinitionId = getPreviousDecisionRequirementsDefinitionId();
 if (previousDecisionDefinitionId != null) {
  previousDecisionDefinition = loadDecisionRequirementsDefinition(previousDecisionDefinitionId);
  if (previousDecisionDefinition == null) {
   resetPreviousDecisionRequirementsDefinitionId();
   previousDecisionDefinitionId = getPreviousDecisionRequirementsDefinitionId();
   if (previousDecisionDefinitionId != null) {
    previousDecisionDefinition = loadDecisionRequirementsDefinition(previousDecisionDefinitionId);
   }
  }
 }
 return previousDecisionDefinition;
}
origin: camunda/camunda-bpm-platform

@Override
protected List<DecisionDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) {
 List<DecisionDefinitionEntity> decisions = new ArrayList<DecisionDefinitionEntity>();
 // get the decisions from the deployed drd instead of parse the DMN again
 DecisionRequirementsDefinitionEntity deployedDrd = findDeployedDrdForResource(deployment, resource.getName());
 if (deployedDrd == null) {
  throw LOG.exceptionNoDrdForResource(resource.getName());
 }
 Collection<DmnDecision> decisionsOfDrd = deployedDrd.getDecisions();
 for (DmnDecision decisionOfDrd : decisionsOfDrd) {
  DecisionDefinitionEntity decisionEntity = (DecisionDefinitionEntity) decisionOfDrd;
  if (DecisionRequirementsDefinitionDeployer.isDecisionRequirementsDefinitionPersistable(deployedDrd)) {
   decisionEntity.setDecisionRequirementsDefinitionId(deployedDrd.getId());
   decisionEntity.setDecisionRequirementsDefinitionKey(deployedDrd.getKey());
  }
  decisions.add(decisionEntity);
 }
 if (!DecisionRequirementsDefinitionDeployer.isDecisionRequirementsDefinitionPersistable(deployedDrd)) {
  deployment.removeArtifact(deployedDrd);
 }
 return decisions;
}
origin: camunda/camunda-bpm-platform

public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) {
 if (decisionRequirementsDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionRequirementsDefinition.getTenantId())) {
  throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision requirements definition '"+ decisionRequirementsDefinition.getId() + "'");
 }
}
origin: camunda/camunda-bpm-platform

protected DecisionRequirementsDefinitionEntity findDeployedDrdForResource(DeploymentEntity deployment, String resourceName) {
 List<DecisionRequirementsDefinitionEntity> deployedDrds = deployment.getDeployedArtifacts(DecisionRequirementsDefinitionEntity.class);
 if (deployedDrds != null) {
  for (DecisionRequirementsDefinitionEntity deployedDrd : deployedDrds) {
   if (deployedDrd.getResourceName().equals(resourceName)) {
    return deployedDrd;
   }
  }
 }
 return null;
}
origin: camunda/camunda-bpm-platform

public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) {
 getAuthorizationManager().checkAuthorization(READ, DECISION_REQUIREMENTS_DEFINITION, decisionRequirementsDefinition.getKey());
}
origin: org.camunda.bpm/camunda-engine

@Override
public ResourceDefinitionEntity getPreviousDefinition() {
 DecisionRequirementsDefinitionEntity previousDecisionDefinition = null;
 String previousDecisionDefinitionId = getPreviousDecisionRequirementsDefinitionId();
 if (previousDecisionDefinitionId != null) {
  previousDecisionDefinition = loadDecisionRequirementsDefinition(previousDecisionDefinitionId);
  if (previousDecisionDefinition == null) {
   resetPreviousDecisionRequirementsDefinitionId();
   previousDecisionDefinitionId = getPreviousDecisionRequirementsDefinitionId();
   if (previousDecisionDefinitionId != null) {
    previousDecisionDefinition = loadDecisionRequirementsDefinition(previousDecisionDefinitionId);
   }
  }
 }
 return previousDecisionDefinition;
}
origin: org.camunda.bpm/camunda-engine

@Override
protected List<DecisionDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) {
 List<DecisionDefinitionEntity> decisions = new ArrayList<DecisionDefinitionEntity>();
 // get the decisions from the deployed drd instead of parse the DMN again
 DecisionRequirementsDefinitionEntity deployedDrd = findDeployedDrdForResource(deployment, resource.getName());
 if (deployedDrd == null) {
  throw LOG.exceptionNoDrdForResource(resource.getName());
 }
 Collection<DmnDecision> decisionsOfDrd = deployedDrd.getDecisions();
 for (DmnDecision decisionOfDrd : decisionsOfDrd) {
  DecisionDefinitionEntity decisionEntity = (DecisionDefinitionEntity) decisionOfDrd;
  if (DecisionRequirementsDefinitionDeployer.isDecisionRequirementsDefinitionPersistable(deployedDrd)) {
   decisionEntity.setDecisionRequirementsDefinitionId(deployedDrd.getId());
   decisionEntity.setDecisionRequirementsDefinitionKey(deployedDrd.getKey());
  }
  decisions.add(decisionEntity);
 }
 if (!DecisionRequirementsDefinitionDeployer.isDecisionRequirementsDefinitionPersistable(deployedDrd)) {
  deployment.removeArtifact(deployedDrd);
 }
 return decisions;
}
origin: org.camunda.bpm/camunda-engine

public void checkReadDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) {
 if (decisionRequirementsDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionRequirementsDefinition.getTenantId())) {
  throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision requirements definition '"+ decisionRequirementsDefinition.getId() + "'");
 }
}
origin: camunda/camunda-bpm-platform

protected void resetPreviousDecisionRequirementsDefinitionId() {
 previousDecisionRequirementsDefinitionId = null;
 ensurePreviousDecisionRequirementsDefinitionIdInitialized();
}
origin: org.camunda.bpm/camunda-engine

protected DecisionRequirementsDefinitionEntity findDeployedDrdForResource(DeploymentEntity deployment, String resourceName) {
 List<DecisionRequirementsDefinitionEntity> deployedDrds = deployment.getDeployedArtifacts(DecisionRequirementsDefinitionEntity.class);
 if (deployedDrds != null) {
  for (DecisionRequirementsDefinitionEntity deployedDrd : deployedDrds) {
   if (deployedDrd.getResourceName().equals(resourceName)) {
    return deployedDrd;
   }
  }
 }
 return null;
}
origin: camunda/camunda-bpm-platform

@Override
protected DmnDecisionRequirementsGraphImpl createDmnElement() {
 return new DecisionRequirementsDefinitionEntity();
}
origin: camunda/camunda-bpm-platform

public static boolean isDecisionRequirementsDefinitionPersistable(DecisionRequirementsDefinitionEntity definition) {
 // persist no decision requirements definition for a single decision
 return definition.getDecisions().size() > 1;
}
org.camunda.bpm.engine.impl.dmn.entity.repositoryDecisionRequirementsDefinitionEntity

Most used methods

  • <init>
  • ensurePreviousDecisionRequirementsDefinitionIdInitialized
  • getDecisions
  • getId
  • getKey
  • getPreviousDecisionRequirementsDefinitionId
  • getResourceName
  • getTenantId
  • loadDecisionRequirementsDefinition
    Returns the cached version if exists; does not update the entity from the database in that case
  • resetPreviousDecisionRequirementsDefinitionId
  • setCategory
  • setCategory

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • Menu (java.awt)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now