def get_workflow_spec(spec_dict): """Get workflow specification object from dictionary. NOTE: For large workflows this method can work very long (seconds). For this reason, method 'get_workflow_spec_by_definition_id' or 'get_workflow_spec_by_execution_id' should be used whenever possible because they cache specification objects. :param spec_dict: Raw specification dictionary. """ if _get_spec_version(spec_dict) == V2_0: return base.instantiate_spec(wf_v2.WorkflowSpec, spec_dict) return None
def get_action_spec(spec_dict): if _get_spec_version(spec_dict) == V2_0: return base.instantiate_spec(actions_v2.ActionSpec, spec_dict) return None
def get_workbook_spec(spec_dict): if _get_spec_version(spec_dict) == V2_0: return base.instantiate_spec(wb_v2.WorkbookSpec, spec_dict) return None
def get_task_spec(spec_dict): if _get_spec_version(spec_dict) == V2_0: return base.instantiate_spec(tasks_v2.TaskSpec, spec_dict) return None
def get_workflow_list_spec(spec_dict): return base.instantiate_spec(wf_v2.WorkflowListSpec, spec_dict)
def get_action_list_spec(spec_dict): return base.instantiate_spec(actions_v2.ActionListSpec, spec_dict)
def get_workflow_spec(spec_dict): if _get_spec_version(spec_dict) == V2_0: return base.instantiate_spec(wf_v2.WorkflowSpec, spec_dict) return None