File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 131131from sqlalchemy.orm.session import Session
132132from sqlalchemy.sql.expression import FromClause
133133from typing_extensions import (
134+ deprecated,
134135 Literal,
135136 NotRequired,
136137 Protocol,
@@ -2030,6 +2031,21 @@ def set_state(self, state: JobState) -> bool:
20302031 self.state_history.append(JobStateHistory(self))
20312032 return True
20322033
2034+ @deprecated("Use tool.get_param_values(job) instead")
2035+ def get_param_values(self, app, ignore_errors=False):
2036+ """
2037+ Read encoded parameter values from the database and turn back into a
2038+ dict of tool parameter values.
2039+ """
2040+ tool = app.toolbox.get_tool(
2041+ self.tool_id,
2042+ tool_version=self.tool_version,
2043+ tool_uuid=self.dynamic_tool and self.dynamic_tool.uuid,
2044+ user=self.user,
2045+ )
2046+ param_dict = tool.get_param_values(self, ignore_errors=ignore_errors)
2047+ return param_dict
2048+
20332049 def raw_param_dict(self):
20342050 param_dict = {p.name: p.value for p in self.parameters}
20352051 return param_dict
You can’t perform that action at this time.
0 commit comments