Skip to content

Commit

Permalink
unbound process parameter support
Browse files Browse the repository at this point in the history
  • Loading branch information
josrobins authored and MariusWirtz committed Aug 4, 2021
1 parent f305d15 commit 144db38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TM1py/Services/ProcessService.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,15 @@ def execute_process_with_return(self, process: Process, **kwargs) -> Tuple[bool,
"""
Run unbound TI code directly
:param process: a TI Process Object
:param kwargs: dictionary of process parameters and values
:return: success (boolean), status (String), error_log_file (String)
"""
url = "/api/v1/ExecuteProcessWithReturn?$expand=*"
if kwargs:
for parameter_name, parameter_value in kwargs.items():
process.add_parameter(name=parameter_name,
prompt=parameter_name,
value=parameter_value)

payload = json.loads("{\"Process\":" + process.body + "}")

Expand Down

0 comments on commit 144db38

Please sign in to comment.