Class AdvancedDependency
Represents an advanced dependency on a specific task, with optional final state conditions. Use SetTaskDependencies(params AdvancedDependency[]) to set dependencies.
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class AdvancedDependency
Constructors
AdvancedDependency(QTask, params TaskFinalState[])
Creates an advanced dependency on the given task with optional final state conditions.
Declaration
public AdvancedDependency(QTask task, params TaskFinalState[] conditions)
Parameters
| Type | Name | Description |
|---|---|---|
| QTask | task | The task to depend on. |
| TaskFinalState[] | conditions | Required final states. Pass none (or null) to accept any final state. |
AdvancedDependency(Guid, params TaskFinalState[])
Creates an advanced dependency on the given task UUID with optional final state conditions.
Declaration
public AdvancedDependency(Guid taskUuid, params TaskFinalState[] conditions)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | taskUuid | UUID of the task to depend on. |
| TaskFinalState[] | conditions | Required final states. Pass none (or null) to accept any final state. |
Properties
ActualFinalState
The actual final state of the dependency, if it's completed
Declaration
public TaskFinalState? ActualFinalState { get; }
Property Value
| Type | Description |
|---|---|
| TaskFinalState? |
State
The current state of this dependency as reported by the API.
Declaration
public DependencyState? State { get; }
Property Value
| Type | Description |
|---|---|
| DependencyState? |
TaskFinalStateCondition
Required final states for the dependency to be fulfilled. Null or empty means any final state is accepted (task just needs to complete).
Declaration
public IReadOnlyList<TaskFinalState> TaskFinalStateCondition { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<TaskFinalState> |
TaskUuid
UUID of the task this dependency refers to.
Declaration
public Guid TaskUuid { get; }
Property Value
| Type | Description |
|---|---|
| Guid |