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