Example #1
0
    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()
Example #2
0
 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()