Class ProcessService

java.lang.Object
org.qubership.atp.mia.service.execution.ProcessService

@Service public class ProcessService extends Object
  • Constructor Details

    • ProcessService

      public ProcessService()
  • Method Details

    • executeCommandOnLocalHost

      @Deprecated public void executeCommandOnLocalHost(String command)
      Deprecated.
      Execute command on local host.
      Parameters:
      command - command
    • executeCurrentStatement

      @AtpJaegerLog(spanTags=@AtpSpanTag(key="current.statement.name",value="#executableName")) public List<SqlResponse> executeCurrentStatement(String executableName)
      Executes current statement queries.
      Parameters:
      executableName - executable name
      Returns:
      list of query results
    • executeProcess

      @AtpJaegerLog(spanTags=@AtpSpanTag(key="process.name",value="#request.process")) public ExecutionResponse executeProcess(ExecutionRequest request, UUID sseId)
      Executes process.
    • fillFlowDataWithEnvVars

      public void fillFlowDataWithEnvVars(String system, CommandResponse.CommandResponseType type)
      Takes two parameters SYSTEM and CONNECTION_TYPE from FlowData and adds corresponding environment variables using ContextRepository.
    • fillFlowDataWithEnvVars

      public void fillFlowDataWithEnvVars(String system, String connection)
      Adds all variables from connection to FlowData.
      Parameters:
      system - name from environment.
      connection - connection name which placed inside the system.
    • getNextBillDate

      public String getNextBillDate()
      Gets next bill date for account number.
    • replaceProcessSystems

      public ProcessSettings replaceProcessSystems(ProcessSettings processSettings)
      Replaces Systems in Command, PreRequisites and Validations of Process, with Custom Input (if any).
      Parameters:
      processSettings - instance of Process
      Returns:
      updated Process.
    • resetDbCache

      public boolean resetDbCache()
      Rest DB Cashe on Environment.
      Returns:
      true if clear successful.
    • getActualStateOfSwitchers

      public void getActualStateOfSwitchers(List<Switcher> switchersListFromBe, List<Switcher> switchersListFromFe)
      Get actual state of switchers.
      Parameters:
      switchersListFromBe - switchers BE
      switchersListFromFe - switchers FE