fmeobjects.FMEWorkspaceRunner.run

FMEWorkspaceRunner.run(workspace, parentHandle)

Executes the workspace file specified. The first time this method is called on a workspace, any published parameters will be prompted for before the workspace is run. Subsequent calls to this method with the same workspace will not prompt for published parameters. The published parameters specified during the first call to this method will be used in the subsequent calls.

This method will run mapping files in addition to workspaces. However, workspaces are preferred over mapping files due to the configuration ease workspaces provide.

Parameters:
  • workspace (str) – The path to the workspace to run.

  • parentHandle (int) – (Optional) The window handle that the FME prompt dialogs will be bound to.

Return type:

None

Raises:

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