java.lang.Object
com.github.devmix.process.acto.messages.Start

public final class Start extends Object
Represents a message to start processing with an Active Object. This class holds information about the source of the message, the chain of Active Objects involved in the process, and any visited objects.
Author:
Sergey Grachev
  • Method Details

    • standard

      public static Start standard()
      Creates a standard Start instance without any parameters.
      Returns:
      a new Start instance
    • downstream

      public static Start downstream(ActiveObject<?> source, Start origin, boolean optional)
      Creates a new Start instance based on an existing one, with the provided source and optionality flag.
      Parameters:
      source - the source active object from which to start processing
      origin - the original Start instance whose chain and visited objects will be copied
      optional - whether the start is optional or mandatory
      Returns:
      a new Start instance based on the provided parameters
    • isVisited

      public boolean isVisited(Object objectId)
      Checks if an object ID has already been visited during processing.
      Parameters:
      objectId - the object ID to check
      Returns:
      true if the object ID is in the visited set; false otherwise
    • starting

      public void starting(ActiveObject<?> object)
      Adds an active object to the chain and records its ID as visited.
      Parameters:
      object - the active object to add to the processing chain