Class ProcessService
java.lang.Object
org.qubership.atp.mia.service.execution.ProcessService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommandOnLocalHost(String command) Deprecated.executeCurrentStatement(String executableName) Executes current statement queries.executeProcess(ExecutionRequest request, UUID sseId) Executes process.voidfillFlowDataWithEnvVars(String system, String connection) Adds all variables from connection toFlowData.voidfillFlowDataWithEnvVars(String system, CommandResponse.CommandResponseType type) Takes two parameters SYSTEM and CONNECTION_TYPE fromFlowDataand adds corresponding environment variables usingContextRepository.voidgetActualStateOfSwitchers(List<Switcher> switchersListFromBe, List<Switcher> switchersListFromFe) Get actual state of switchers.Gets next bill date for account number.replaceProcessSystems(ProcessSettings processSettings) Replaces Systems in Command, PreRequisites and Validations of Process, with Custom Input (if any).booleanRest DB Cashe on Environment.
-
Constructor Details
-
ProcessService
public ProcessService()
-
-
Method Details
-
executeCommandOnLocalHost
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
Takes two parameters SYSTEM and CONNECTION_TYPE fromFlowDataand adds corresponding environment variables usingContextRepository. -
fillFlowDataWithEnvVars
Adds all variables from connection toFlowData.- Parameters:
system- name from environment.connection- connection name which placed inside the system.
-
getNextBillDate
Gets next bill date for account number. -
replaceProcessSystems
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 BEswitchersListFromFe- switchers FE
-