Class GroupInfo


  • public class GroupInfo
    extends Object
    • Constructor Detail

      • GroupInfo

        public GroupInfo​(ProcessGroup group,
                         ProcessRequest request,
                         ProcessRun processRun,
                         List<ProcessGroupList> groupList,
                         boolean stopWhenFails,
                         VariablesSecureApp vars,
                         ConnectionProvider conn)
        Creates a new GroupInfo object with the given parameters
        Parameters:
        group - the process group
        request - the process request of the process group
        processRun - the process run of the process request of the process group
        groupList - the list of processes that are part of the group
        stopWhenFails - if true the process group will stop after a process fails
        vars - clients security/application context variables
        conn - connection provider
    • Method Detail

      • getGroup

        public ProcessGroup getGroup()
        Returns the Process Group
        Returns:
        ProcessGroup
      • getRequest

        public ProcessRequest getRequest()
        Returns the Process Request of the group
        Returns:
        ProcessRequest of the group
      • getProcessRun

        public ProcessRun getProcessRun()
        Returns the Process Run of the group
        Returns:
        ProcessRun of the group
      • getStatus

        public String getStatus()
        Returns the status of the group
        Returns:
        String with the status of the group
      • getLog

        public String getLog()
        Returns the log of the group, this method should be call at the end of all process executions
        Returns:
        String with the log of the group
      • getDuration

        public long getDuration()
        Returns the duration of the group
        Returns:
        Long with the duration in milliseconds
      • executeNextProcess

        public String executeNextProcess()
                                  throws org.quartz.SchedulerException,
                                         javax.servlet.ServletException
        Execute the next process of the group
        Returns:
        String with the process id executed or END if there is no more processes to execute
        Throws:
        org.quartz.SchedulerException
        javax.servlet.ServletException
      • logProcess

        public void logProcess​(String result)
        Log the result of a process in the process group log
        Parameters:
        result - Process.SUCCESS or Process.ERROR