def instantiate(self, workflow): element = WorkflowElement.unserialize(workflow.specification) self.cache[workflow.id] = (workflow.modified, element) return element
def _verify_specification(cls, specification): if specification is None: return schema = WorkflowElement.unserialize(specification) schema.verify()
def _verify_specification(cls, specification): if specification is None: return schema = WorkflowElement.unserialize(specification) schema.verify()
def instantiate(self, workflow): element = WorkflowElement.unserialize(workflow.specification) self.cache[workflow.id] = (workflow.modified, element) return element