def fapplyAt(self, fun, message, element=None): if element is None: element = message step = WorkflowStep(fun) step.operation_name = message step.set_order(replaces=element) self.history.append(step) return self.update_data()
def fapplyBefore(self, fun, message, element): step = WorkflowStep(fun) step.operation_name = message step.set_order(before=element) self.history.append(step) return self.update_data()