Configuring Process Scheduler

Some applications process documents using Microsoft Word. Here is how to configure Microsoft Word to work with the Process Scheduler.

Note:

Microsoft Word must already be installed on the server; it is not included with the PeopleSoft PeopleTools install.

To configure Process Scheduler for Microsoft Word:

  1. Log in to the PeopleSoft application in a browser and select PeopleTools > Process Scheduler > Process Scheduler Processes.

  2. Search for Process Type Winword and select a process.

  3. On the Process Definition page, select Override Options, as shown in this example.

    Figure 20-14 Process Definition page: Override Options

    Process Definition page: Override Options
  4. In the Parameter List field, enter %%PS_HOME%%\WINWORD\WORDSAMP.DOCX/mWORDSAMP and save.

  5. Locate the Process Scheduler configuration file psprcs.cfg in PS_CFG_HOME\appserv\prcs\<database_name> directory and open it for editing.

  6. In the [Process Scheduler] section, edit the WINWORD entry so that it points to the directory where winword.exe is installed—for example, “WINWORD=C:\Program Files\Microsoft Office\OFFICE 12” (include the quotes in the entry).

  7. If spaces exist in the WINWORD path in the Process Scheduler configuration file (psprcs.cfg), Microsoft Word reports will fail. You will need to modify the Process Type Definition and add quotes around the entry in the Command Line field, for example " %%WINWORD%%\winword.exe".

  8. Change the Microsoft Word macro security to allow macros to be run.

    Start Microsoft Word and select Tools, Macro, Security. Select the Low security setting and click OK.

  9. If you are running on Microsoft Windows, modify your macros to include the following line:

    Application.AutomationSecurity=msoAutomationSecurityLow

    You can see an example by viewing the macros in PS_HOME\winword\Wordsamp.doc.

  10. Make sure that all the servers (that is, Application Server and Process Scheduler servers) are running in the context of the logged-in user, as WinWord is executed in the same context.