fmeobjects.FMEWorkspaceRunner.runWithParameters

FMEWorkspaceRunner.runWithParameters(workspace, parameters)

Executes the workspace file specified using the parameter values. The parameter values are to be specified as name/value pairs. For example, for the pair SHAPE_IN_DISSOLVE_HOLES_SHAPE/no:

>>> runner.runWithParameters('workspace.fmw', {'SHAPE_IN_DISSOLVE_HOLES_SHAPE', 'no'})
Parameters:
  • workspace (str) – The path to the workspace to run.

  • parameters (dict[parameters]) – Parameter name and values dictionary.

Return type:

None

Raises:

FMEException – An exception is raised if the running of the workspace failed.