hpcflow.sdk.persistence.base.StoreTask#
- class hpcflow.sdk.persistence.base.StoreTask(id_, index, is_pending, element_IDs, task_template=None)#
Bases:
object
Represents a task in a persistent store.
- Parameters:
Methods
Return a copy, with additional element IDs.
Initialise a StoreTask from store task data
Prepare store task data for the persistent store.
Attributes
Description of the template for the task.
The ID of the task.
The index of the task within its workflow.
Whether the task has changes not yet persisted.
The IDs of elements in the task.
- append_element_IDs(pend_IDs)#
Return a copy, with additional element IDs.
- classmethod decode(task_dat)#
Initialise a StoreTask from store task data
Note: the task_template is only needed for encoding because it is retrieved as part of the WorkflowTemplate so we don’t need to load it when decoding.