def make_step_outcome()

in message_flow/sagas/orchestration_simple_dsl/local_step.py [0:0]


    def make_step_outcome(self, data: Data, compensating: bool) -> IStepOutcome:
        try:
            if compensating:
                if self.has_compensation(data):
                    self._compensation(data)  # type: ignore
            else:
                self._local_function(data)

            return StepOutcome.make_local_outcome()
        except RuntimeError as error:
            return StepOutcome.make_local_outcome(error)