Task model class.
:property input_specs: The specs of the input :type input_specs: dict :property output_specs: The specs of the output :type output_specs: dict :property config_specs: The specs of the config :type config_specs: dict
community_agent_version_id: str
community_agent_version_modified: bool
config: Config
data: Dict[str, Any]
error_info: ProcessErrorInfo
progress_bar: ProgressBar
scenario: Scenario
source_config_id: str
status: ProcessStatus
style: TypingStyle
Constructor
bool
- True
bool
- True
bool
- False
str
bool
Optional[ProcessErrorInfo]
Return the execution time of the process
float
return the instance name in the context
str
Return the instance path
str
Return the last message of the process
Optional[ProgressBarMessageDTO]
Return the name of the process
str
Type[Process]
Typing
Return the last message of the process
float
Returns the port of the inputs by its name.
str
InPort
Return true if the process is automatically run when added to a protocol
bool
Return true if the process is enable in sub protocol
bool
return true if the process is of type InputTask
bool
return true if the process is of type OutputTask
bool
bool
bool
Returns True if the model is saved in db, False otherwise
bool
ProcessErrorInfo
ProcessRunException
str
Returns the port of the outputs by its name.
str
OutPort
ModelType
Run the process and save its state in the database.
Override save to save the inputs and outputs
'ProcessModel'
Function to run overrided by the sub classes
TaskModel
Method run just before the task run to save the input resource for this task. this will allow to know what resource this task uses as input
Save the process run stat. If it's a autorun process, it doesnt save.
Set the config
Config
Set a value of the config
str
Any
Set the config values
Dict
ProcessErrorInfo
Set the inputs from a DTO
IODTO
bool
- False
Set the inputs from specs
IOSpecs
Set the outputs from a DTO
IODTO
bool
- False
Set the outputs from specs
IOSpecs
Sets the parent protocol of the process
ProtocolModel
Method used when creating a new task model, it init the input and output from task specs
Type
Scenario
Return the config DTO
bool
- False
ProcessConfigDTO
Return the minium json to recognize this process
ProcessMinimumDTO
Any
Method call after all the table are inited
Useful when use DeferredForeignKey to create the foreign key manually latter
Method call after the table is created
Usefull to create the full text indexes
Any
Any
bool
- True
bool
- True
Any
Any
bool
- True
bool
- True
Any
Any
Any
Any
Any
Returns the name of the class
bool
- False
bool
- False
bool
- False
str
Returns True if the column exists in the table
str
bool
Any
Create a foreign key for a Foreign key field only if the foreign key does not exists
ForeignKeyField
Method to create a full text index
List
str
Create model table
Any
Drop model table
Execute a raw SQL query. Can use the [TABLE_NAME] to replace by the table name
str
Any
Any
str
bool
Returns the full name of the class
bool
- False
bool
- False
str
Any
Any
str
Optional
Get by ID and throw 404 error if object not found
str
ModelType
List
List
DatabaseProxy
Returns the (current) DbManager of this model
Type
Any
Any
Return all the Input task Model of the scenario
List
ModelSelect
Returns the table name of this class
str
Any
Returns True if the index exists in the table
str
bool
Get all the classes that inherit this class
List
Any
Any
Any
Any
Any
Any
Any
Any
Any
Any
Any
Any
Performs full-text search on the field. Must be overrided by child class to work
str
str
ModelSelect
Any
Any
Any
Any
Any
Any
Any