'Return a serializable representation of the persistable state of
the step.'

def get_state(self, nested=True):

    inputs = self.get_inputs()
    if inputs:
        return self.state.encode(Bunch(inputs=inputs), self.trans.app, nested=nested)
    else:
        return self.state.inputs
