Class DmnDeployer

  • All Implemented Interfaces:
    Deployer

    public class DmnDeployer
    extends Object
    implements Deployer
    Author:
    Joram Barrez, Tijs Rademakers, Yvo Swillens
    • Constructor Detail

      • DmnDeployer

        public DmnDeployer()
    • Method Detail

      • getPreviousVersionsOfDecisions

        protected Map<DecisionEntity,​DecisionEntity> getPreviousVersionsOfDecisions​(ParsedDeployment parsedDeployment)
        Constructs a map from new DecisionEntities to the previous version by key and tenant. If no previous version exists, no map entry is created.
      • setDecisionVersionsAndIds

        protected void setDecisionVersionsAndIds​(ParsedDeployment parsedDeployment,
                                                 Map<DecisionEntity,​DecisionEntity> mapNewToOldDecisions)
        Sets the version on each decision entity, and the identifier. If the map contains an older version for a decision, then the version is set to that older entity's version plus one; otherwise it is set to 1.
      • persistDecisions

        protected void persistDecisions​(ParsedDeployment parsedDeployment)
        Saves each decision. It is assumed that the deployment is new, the decisions have never been saved before, and that they have all their values properly set up.
      • makeDecisionsConsistentWithPersistedVersions

        protected void makeDecisionsConsistentWithPersistedVersions​(ParsedDeployment parsedDeployment)
        Loads the persisted version of each decision and set values on the in-memory version to be consistent.
      • setIdGenerator

        public void setIdGenerator​(IdGenerator idGenerator)
      • setParsedDeploymentBuilderFactory

        public void setParsedDeploymentBuilderFactory​(ParsedDeploymentBuilderFactory parsedDeploymentBuilderFactory)
      • setDmnDeploymentHelper

        public void setDmnDeploymentHelper​(DmnDeploymentHelper dmnDeploymentHelper)
      • isUsePrefixId

        public boolean isUsePrefixId()
      • setUsePrefixId

        public void setUsePrefixId​(boolean usePrefixId)