Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
0
Share

ProcessFactory

Contains methods to instantiate TaskModel and ProtocolModel but it does not save the instances to the database, it only create th objects

Functions
create_empty_protocol_model_from_config_dto @classmethod

Create a protocol model from a ProcessConfigDTO. The protocol is fully created from the dto and the process type is not used. It can create a protocol where the type does not exist in the system.

Warning, it does not initialize the graph.

protocol_config_dto : ProcessConfigDTO
copy_id : bool
Return type : ProtocolModel
create_output_task @classmethod
Return type : TaskModel
create_process_model_from_type @classmethod
process_type : Type
config_params : Dict
instance_name : str
community_agent_version_id : str
Return type : TaskModel
create_process_model_from_typing_name @classmethod
typing_name : str
config_params : Dict
instance_name : str
Return type : TaskModel
create_protocol_empty @classmethod
instance_name : str
name : str
protocol_type : Type - <class 'gws_core.protocol.protocol.Protocol'>
Return type : ProtocolModel
create_protocol_model_from_type @classmethod
protocol_type : Type
config_params : Dict
instance_name : str
name : str
Return type : ProtocolModel
create_source @classmethod
resouce_id : str
Return type : TaskModel
create_task_model_from_config_dto @classmethod

Create a task model from a ProcessConfigDTO. The task is fully created from the dto and the process type is not used. It can create a task where the type does not exist in the system.

task_config_dto : ProcessConfigDTO
object containing the task configuration
copy_id : bool
Return type : TaskModel
create_task_model_from_type @classmethod

Create a task model from a task type. The specs are created from the task type.

task_type : Type
_description_
config_params : Optional
_description_
instance_name : Optional
_description_
inputs_dto : Optional
If provided, override the input spec of the task (useful for dynamic IO)
outputs_dto : Optional
If provided, override the output spec of the task (useful for dynamic IO)
name : Optional
_description_
community_agent_version_id : Optional
_description_
style : Optional
_description_
config_specs : Optional
Return type : TaskModel
create_task_model_from_typing_name @classmethod
typing_name : str
config_params : Dict
instance_name : str
Return type : TaskModel
create_viewer @classmethod
resource_typing_name : str
Return type : TaskModel
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.