Login
Back to bricks list
Introduction Version

ProcessFactory

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

Functions

COPY_PROCESS - @classmethod
Parameters:
NameTypeDefault valueDescription
process_modelProcessModel
Return type:
ProtocolModel
COPY_PROTOCOL - @classmethod

Copy a protocol, copy sub nodes,copy interface, outerface and connecter

Parameters:
NameTypeDefault valueDescription
protocol_modelProtocolModel [description]
Return type:
ProtocolModel
COPY_TASK - @classmethod
Parameters:
NameTypeDefault valueDescription
task_modelTaskModel
Return type:
TaskModel
CREATE_PROCESS_MODEL_FROM_PROCESS_MODEL - @classmethod
Parameters:
NameTypeDefault valueDescription
process_modelProcessModel
instance_namestr
Return type:
ProcessModel
CREATE_PROCESS_MODEL_FROM_TYPE - @classmethod
Parameters:
NameTypeDefault valueDescription
process_typeType
config_paramsDict
instance_namestr
community_live_task_version_idstr
Return type:
TaskModel
CREATE_PROCESS_MODEL_FROM_TYPING_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
config_paramsDict
instance_namestr
Return type:
TaskModel
CREATE_PROTOCOL_EMPTY - @classmethod
Parameters:
NameTypeDefault valueDescription
instance_namestr
namestr
protocol_typeType <class 'gws_core.protocol.protocol.Protocol'>
Return type:
ProtocolModel
CREATE_PROTOCOL_MODEL_FROM_GRAPH - @classmethod

Create a new instance from a existing graph

Parameters:
NameTypeDefault valueDescription
graphProtocolConfigDTO
Return type:
ProtocolModel
CREATE_PROTOCOL_MODEL_FROM_TYPE - @classmethod
Parameters:
NameTypeDefault valueDescription
protocol_typeType
config_paramsDict
instance_namestr
namestr
Return type:
ProtocolModel
CREATE_SINK - @classmethod
Return type:
TaskModel
CREATE_SOURCE - @classmethod
Parameters:
NameTypeDefault valueDescription
resouce_idstr
Return type:
TaskModel
CREATE_TASK_MODEL_FROM_TYPE - @classmethod
Parameters:
NameTypeDefault valueDescription
task_typeType
config_paramsDict
instance_namestr
inputs_dtoIODTO
outputs_dtoIODTO
namestr
community_live_task_version_idstr
styleTypingStyle
Return type:
TaskModel
CREATE_TASK_MODEL_FROM_TYPING_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
config_paramsDict
instance_namestr
Return type:
TaskModel
CREATE_VIEWER - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_typing_namestr
Return type:
TaskModel