Configuring the Creo View Adapter for Creo Parametric > proeworker Server Controlled Publishing > Using proeworker
  
Using proeworker
* 
You are strongly advised to test the proebatch configuration before using proeworker. Troubleshooting proebatch is an easy way of identifying and resolving most issues that also affect the worker.
The worker script is created in the <setup_directory> and should be run by the Visualization server when starting the worker.
When configuring the Worker Agent to use this worker, use the following Execute Command:
<setup_directory>/proeworker.bat
In our example, this command is:
/ptc/proe_setup/proeworker.bat
* 
Do not use spaces in the setup directory name. Use the .bat extension when the worker is on a Windows machine.
Using the proestartup script
The adapter configuration utility writes a script file named proestartup.bat along with proeworker.bat in the proe_setup folder. The proestartup.bat script facilitates intervention in the worker start up and restart process that is performed by the Worker Helper. The proeworker.bat script is not executed on restart.
The proestartup.bat script is executed by the helper on each start and restart of the worker process. By default the script contains only the command to delete the WWGM cache and is located at <setup_directory>\.wf as defined by the PTC_WF_ROOT variable set in the proeworker.bat. You can disable the execution of the proestartup.bat script by renaming it, for example, proestartup.bat_disabled.
You can also customize the script file to perform additional cleanup operations, such as deleting the content of the WWGM Workspace Local Directory folder (defined by variable PTC_WLD_ROOT) or troubleshooting operations such as capturing or renaming folders before restarting the worker.
* 
The proestartup.bat script is executed by the helper in a Windows subshell, and once complete, returns control to the helper. Therefore, the changes made to the shell environment are not implemented in the worker’s runtime environment, allowing for testing. You must test changes made to this script before implementing it in production
For more information about configuring the Worker Agent to use this worker, refer to Visualization Server Definition.