'Takes the serialized runtime state and decodes it when running the workflow.'

def decode_runtime_state(self, runtime_state):

    state = DefaultToolState()
    state.decode(runtime_state, Bunch(inputs=self.get_runtime_inputs()), self.trans.app)
    return state
