Specialized Administration > Working with Properties and Command Line Utilities > Workflow Command Line Utilities > Complete Running Processes Command Line Utility
  
Complete Running Processes Command Line Utility
Use the Complete Running Processes command line utility to complete or repair running workflow processes that have more than one input link approaching the END flag.
The utility does not repair the workflow templates themselves; it only repairs the processes that were created using a workflow template that has an END flag with more than one input path. To avoid running this utility again, you must modify any applicable workflow templates by adding an appropriate connector before the END flag.
* 
Run this utility against only those processes that have multiple links approaching the END flag and have no running activities.
Running the Complete Running Processes Utility
Use the following procedure to run the command line utility:
1. Make a backup of the database.
2. Navigate to the following location:
<Windchill>/codebase/wt/workflow/utility
3. Open CompleteRunningProcessesParams.properties using a standard text editing program.
4. Specify values for the following parameters:
mode
Required?
No
Values
report
execute
Description
Use execute to repair or complete all affected processes and log the details in the method server logs.
Use report to display details of the affected processes or logs them in the method server logs.
The default behavior is report.
WorkFlowTemplateName
Required?
No
Values
Enter a workflow template name. For example:
WorkFlowTemplateName=MyWorkflow
Description
Use this parameter to specify the name of a workflow template with more than one input link approaching the END flag. Any processes that were created using this workflow template are included in the report or, in execute mode, are repaired or completed.
If not specified, all applicable workflow processes are processed.
By default, this parameter is not specified.
* 
This utility can only be used on processes that were created using a workflow template that was created at the site level.
5. Save your changes.
6. Run the following command in a Windchill shell:
java wt.workflow.utility.CompleteRunningProcessesWithMultiplePathsToEnd
* 
You are prompted for administrator credentials to run the utility.
After the utility executes, the logging details are available in the method server logs.