Installation and Upgrade > Upgrading to the Latest Version of PTC FlexPLM > Upgrading Customizations and Pre-Upgrade Considerations > Upgrading Workflow Process Templates > Prepare for Upgrade
  
Prepare for Upgrade
On the source system, terminate existing OPEN_RUNNING processes for any workflow process templates that required updates due to model changes that could impact variable declarations or nested source code. This includes workflow process templates that reference WTPartMaster, LCSCostSheet, and LCSSeasonProductlink variables. Identify the workflow templates that are impacted.
PTC FlexPLM provides the TerminateRunningProcesses utility to allow customers to query the OPEN_RUNNING instances against one or more specific workflow templates and optionally terminate them.
From a Windchill shell, run the following: windchill com.lcs.wc.tools.TerminateRunningProcesses <mode><processTemplate><pboClass>
where
<mode> is either Terminate or Review.
<processTemplate> is the name of the workflow process template in double quotes.
<pboClass> is the FlexPLM object class that is the primary business object (PBO) that the workflow process is initiated on. This is optional. If there is no input for <pboClass>, all workflow processes for the specified <processTemplate> are terminated.
For example:
com.lcs.wc.tools.TerminateRunningProcesses
Review “Flex Review Process” com.lcs.wc.sourcing.LCSCostSheet
You can run the utility in review mode to generate a list of processes that have a state of OPEN_RUNNING to determine if they are the correct list of processes to terminate. The output file written by the utility is <Windchill>/logs/ReviewProcesses_log_date.csv.
When the utility runs in terminate mode, a similar <Windchill>/logs/TerminateProcesses_log_date.csv file lists the terminated processes.
This log can be useful in determining which primary business objects must have their workflow reinitiated post-upgrade.