Class Start
java.lang.Object
com.github.devmix.process.acto.messages.Start
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 Summary
Modifier and TypeMethodDescriptionstatic Startdownstream(ActiveObject<?> source, Start origin, boolean optional) Creates a new Start instance based on an existing one, with the provided source and optionality flag.booleanChecks if an object ID has already been visited during processing.static Startstandard()Creates a standard Start instance without any parameters.voidstarting(ActiveObject<?> object) Adds an active object to the chain and records its ID as visited.
-
Method Details
-
standard
Creates a standard Start instance without any parameters.- Returns:
- a new Start instance
-
downstream
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 processingorigin- the original Start instance whose chain and visited objects will be copiedoptional- whether the start is optional or mandatory- Returns:
- a new Start instance based on the provided parameters
-
isVisited
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
Adds an active object to the chain and records its ID as visited.- Parameters:
object- the active object to add to the processing chain
-