Elastic Capacity Configuration: Adding Business Rules

This page describes how to modify the existing business rules to set up elastic capacity.

See Also
Configuring Elastic Capacity
  1. Using an SFTP tool, log in to the server.
  2. From the following locations:

    • ServerPath/apache-tomcat/webapps/3DSpace/WEB-INF/resources/knowledge/scripts
    • ServerPath/apache-tomcat/webapps/3DSpace/WEB-INF/classes/resources/knowledge/scripts

    Open the following files:

    • ENOVaultChoice_eserviceproduction_vplm.CATRule
    • ENOVaultChoice_eserviceproduction_vplmSearch.CATRule
    • ENOVaultChoice_eserviceproduction_vplm_defaultSearch.CATRule
    • ENOVaultChoice_PLMCORE.CATRule

  3. Replace the content of each file with the following business rule:

    let listVaultForSearch(List)
    let curVault(String)
    
    listVaultForSearch.Append("eService Production")
    listVaultForSearch.Append("vplm")
    listVaultForSearch.Append("vault1")
    listVaultForSearch.Append("vault2")
    listVaultForSearch.Append("vault3")
    
    curVault = getCurrentVaultNameFromContext()
    if (curVault <> NULL and curVault == "")
    {
    	curVault = "eService Production"
    }
    if (curVault <> NULL and listVaultForSearch.IndexOf(curVault, 1) == 0)
    {
    	listVaultForSearch.Append(curVault)
    }
    if (Parameters.GetAttributeString("Project") == "cs2_Project2")
    {
    	curVault = "vault1"
    }
    else if (Parameters.GetAttributeString("Project") == "cs2_Project2")
    {
    	curVault = "vault2"
    }
    else if (Parameters.GetAttributeString("Project") == "cs3_standard")
    {
    	curVault = "vault3"
    }
    Parameters->SetAttributeObject("VaultsForSearch",listVaultForSearch)
    
    Parameters->SetAttributeString("DefaultVaultNameForCreation", curVault)

  4. Restart the server.
  5. In desktop apps only:
    1. Open Client_Installation_Path\win_b64\resources\knowledge\scripts\ENOVaultChoice_eserviceproduction_vplm.CATRule.
    2. Add the following business rule to ENOVaultChoice_eserviceproduction_vplm.CATRule:

      /* this rule has been created for OCDX mode in order to be consistent with PolicyChooser	*/
      /* it valuates the creation vault to vplm and proposes to search in eService Production and vplm vaults	*/ 
      /* it is the standard choice for governance data authored in web app and desktop apps	*/
      let listVaultForSearch(List)
      
      listVaultForSearch.Append("eService Production")
      listVaultForSearch.Append("vplm")
      listVaultForSearch.Append("vault1")
      listVaultForSearch.Append("vault2")
      listVaultForSearch.Append("vault3")
      
      Parameters->SetAttributeObject("VaultsForSearch",listVaultForSearch)
      
      Parameters->SetAttributeString("DefaultVaultNameForCreation","vplm")