Class Process

All Implemented Interfaces:
StateEntity, ChenileEntity, ExtendedStateEntity

@Entity public class Process extends AbstractJpaStateEntity
  • Field Details

    • leaf

      public boolean leaf
      is this leaf process.
    • dormant

      public boolean dormant
      is this a dormant process
    • clientId

      public String clientId
      the client is stored as part of the process.
      this enables us to use the client ID to enable client isolation.
    • processType

      public String processType
    • splitCompleted

      public boolean splitCompleted
      Has the split completed? Split will be completed only after the splitDone event is called.
    • completedPercent

      public int completedPercent
    • parentId

      public String parentId
    • childIdToActivateSuccessors

      public String childIdToActivateSuccessors
    • description

      public String description
      Primarily FYI
    • errors

      public List<SubProcessError> errors
      All errors encountered in this process and its sub-processes.
      This will ultimately be consolidated in the top level.
      Avoid storing the actual errors here. Instead, use this to point to a file that actually contains the errors.
    • numSubProcesses

      public int numSubProcesses
    • numCompletedSubProcesses

      public int numCompletedSubProcesses
    • subProcesses

      public List<Process> subProcesses
      All sub processes are pointed to here.
      This will not be persisted. The sub processes will be manually persisted after the current process is saved.
    • input

      public String input
      Arguments required to start this process.
      This is stored as a String since it needs to be persisted into the database or transmitted over the wire since the sub-process will be created in a separate VM
    • output

      public String output
      Output of the process. Computed by the executors or the Aggregators. The output will be rolled up to the parent process.
    • skipPostWorkerCreation

      public boolean skipPostWorkerCreation
      The flag below is useful to skip worker creation when status updates are done.
    • predecessorId

      public String predecessorId
  • Constructor Details

    • Process

      public Process()
    • Process

      public Process(boolean isLeaf)
    • Process

      public Process(String processType, boolean isLeaf)