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[str, typing.Any] | None instance_name :
str | None community_agent_version_id :
str | None Return type :
TaskModel create_process_model_from_typing_name @classmethod
typing_name :
str config_params :
dict[str, typing.Any] | None instance_name :
str | None Return type :
TaskModel create_protocol_empty @classmethod
instance_name :
str | None name :
str | None protocol_type :
type - <class 'gws_core.protocol.protocol.Protocol'> Return type :
ProtocolModel create_protocol_model_from_type @classmethod
protocol_type :
type config_params :
dict[str, typing.Any] | None instance_name :
str | None name :
str | None 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 :
dict[str, typing.Any] | None _description_
instance_name :
str | None _description_
inputs_dto :
gws_core.io.io_dto.IODTO | None If provided, override the input spec of the task (useful for dynamic IO)
outputs_dto :
gws_core.io.io_dto.IODTO | None If provided, override the output spec of the task (useful for dynamic IO)
name :
str | None _description_
community_agent_version_id :
str | None _description_
style :
gws_core.model.typing_style.TypingStyle | None _description_
config_specs :
gws_core.config.config_specs.ConfigSpecs | None Return type :
TaskModel create_task_model_from_typing_name @classmethod
typing_name :
str config_params :
dict[str, typing.Any] | None instance_name :
str | None Return type :
TaskModel create_viewer @classmethod
resource_typing_name :
str Return type :
TaskModel