Class AsyncProcessingTask

java.lang.Object
com._1c.g5.v8.internal.derived.pipeline.AsyncProcessingTask

public class AsyncProcessingTask extends Object
Async DD processing task definition. Contains an information for DD executor to perform computations.
Serves as a result desitination for the data exchange between the async. pipeline and DD executor.
  • Constructor Details

    • AsyncProcessingTask

      public AsyncProcessingTask(String segmentId, Object objectId, boolean operation, boolean modal, DerivedDataSegmentBucket targetStage)
      Creates the task for the given segment and object.
      Parameters:
      segmentId - A target DD segment. May not be null
      objectId - An identifier of the target object. May not be null
      operation - True if this task is an operation computation task
      modal - True if this task is a modal operation starting task
      targetStage - A target pipeline stage for the task. May not be null
  • Method Details

    • getStatus

      public PipelineTaskComputationStatus getStatus()
      Gets the current status of the task.
      Returns:
      The status of the task.
    • setStatus

      public void setStatus(PipelineTaskComputationStatus status)
      Sets the status for the task.
      Parameters:
      The - status to set.
    • getObjectId

      public Object getObjectId()
      Gets the identifier of the object associated with the task.
      Returns:
      The identifier of the associated BM object.
    • getSegmentId

      public String getSegmentId()
      Gets the DD segment associated with the task.
      Returns:
      The associated DD segment.
    • isModal

      public boolean isModal()
      Checks if the task is a modal task
      Returns:
      True if the task is a modal task
    • isOperation

      public boolean isOperation()
      Checks if the task is an orchestrated operation
      Returns:
      True if the task is an operation task
    • getTargetStage

      public DerivedDataSegmentBucket getTargetStage()
      Gets a target stage for this task
      Returns:
      A target state for the task. May not be null