Task Definition
| Name | Type | Description | Notes |
|---|---|---|---|
| id | ResourceId | ||
| version | VersionInfo | [optional] | |
| display_name | str | Human readable name | |
| description | str | Human readable description | [optional] |
| states | List[TaskStateDefinition] | The states this Task Definition operates over | |
| field_schema | List[TaskFieldDefinition] | The Fields that this Task Definition operates on | [optional] |
| initial_state | InitialState | ||
| triggers | List[TransitionTriggerDefinition] | The Triggers for State transition | [optional] |
| actions | List[ActionDefinitionResponse] | The Actions of this Task - executed after a Transition completion | [optional] |
| transitions | List[TaskTransitionDefinition] | The Transitions between States | [optional] |
| properties | Dict[str, PerpetualProperty] | The properties of the Task Definition, keyed by property key. Only populated when set on the request (Create/Update) or when property keys are requested (Get/List). | [optional] |
from lusid_workflow.models.task_definition import TaskDefinition
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
from typing_extensions import Annotated
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
from datetime import datetime
id: ResourceId
version: Optional[VersionInfo] = None
display_name: StrictStr = "example_display_name"
description: Optional[StrictStr] = "example_description"
states: List[TaskStateDefinition] = # Replace with your value
field_schema: Optional[List[TaskFieldDefinition]] = # Replace with your value
initial_state: InitialState = # Replace with your value
triggers: Optional[List[TransitionTriggerDefinition]] = # Replace with your value
actions: Optional[List[ActionDefinitionResponse]] = # Replace with your value
transitions: Optional[List[TaskTransitionDefinition]] = # Replace with your value
properties: Optional[Dict[str, PerpetualProperty]] = # Replace with your value
task_definition_instance = TaskDefinition(id=id, version=version, display_name=display_name, description=description, states=states, field_schema=field_schema, initial_state=initial_state, triggers=triggers, actions=actions, transitions=transitions, properties=properties)