You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev/workflows.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -331,7 +331,7 @@ Activities can have different roles, defining their behavior and how they intera
331
331
332
332
-`action`: The default role; performs a specific task.
333
333
-`selector`: Contains child activities and uses an eligibility handler to determine which child activities to execute. This enables the ability to have a dynamic and reactive execution pipeline.
334
-
-`subflow`: Creates a new task context and asynchronously processes its workflow sub-graph on a new thread within the workflow machine. The subflow executes asynchronously from the requestor, allowing the original thread to return immediately. Within this context, multiple task actions can be enqueued, enabling extensive parallel processing. After completing its workflow sub-graph, it enters a Stall state, waiting for all its asynchronous task actions to complete. Once all task actions are finished, it re-evaluates its dependencies and may re-execute the entire subflow. This facilitates complex iterative processes that continue until convergence is achieved.
334
+
-`subflow`: Creates a new task context and asynchronously processes its workflow sub-graph on a new thread within the workflow machine. The subflow executes asynchronously from the requestor, allowing the original thread to return immediately. Within this context, multiple task actions can be enqueued, enabling extensive parallel processing. After completing its workflow sub-graph, it enters a Stall state, waiting for all its asynchronous task actions to complete. If the `continuation` property is set to true, the subflow re-evaluates its dependencies upon finishing all task actions and re-executes. This facilitates complex iterative processes that continue until convergence is achieved.
335
335
-`task`: Asynchronously processes the workflow graph on a new thread within the workflow machine. `task` activities enable the pipeline to execute asynchronously from its requestor. `task` activities require a task context to be present; if no task context exists, they execute immediately in the current thread.
336
336
337
337
!!! note
@@ -341,11 +341,12 @@ Activities can have different roles, defining their behavior and how they intera
341
341
342
342
Eligibility determines whether an Activity should execute, based on certain conditions or predicates. Key eligibility properties:
343
343
344
+
-`auto`: An object that automatically generates a boolean control setting and predicate. It includes one optional field:
345
+
- `default`: The default boolean value for the auto-generated setting. If not provided, the default is `true`.
344
346
-`runOnce`: A boolean indicating whether the activity executes only once across all file/analysis sessions. Once the activity runs, its state is saved persistently, and it will not run again unless explicitly reset. This is useful for activities that only need to be performed once, such as initial setup tasks.
345
347
-`runOncePerSession`: A boolean indicating whether the activity executes only once within the current session. Its state is not saved persistently, meaning it resets when a new session begins. This is useful for tasks that should run once per analysis session, such as initialization steps specific to a particular execution context.
348
+
-`continuation`: A boolean indicating if a `subflow` is eligible for re-execution based on its eligibility logic. If not provided, the default is `false`.
346
349
-`predicates`: An array of objects defining the condition that must be met for the activity to be eligible to run.
347
-
- `auto`: An object that automatically generates a boolean control setting and predicate. It includes one optional field:
348
-
- `default`: The default boolean value for the auto-generated setting. If not provided, the default is `true`.
349
350
- `type` (required): A string indicating the type of predicate. Valid values:
350
351
- `"setting"`: Evaluates the value of specific setting.
0 commit comments