This program is used to migrate workflow data model workflow template and
process from jbpm base to new model in database. It'll try to migrate all
workflow templates and failed workflow process only to new model. The tool
works offline, and all process must be proceeded to status
complete/failed/cancel and the workflow service itself must be shutdown
before running this tool.It can be run multiple times but only those
un-migrated templates and processes would be migrate.template/process
already migrated would be stay untouched.
By default, the workflow_migration tool only migrate all template and failed
work order, using -wo option to only migrate Work Orders, but the
precondition is that the template associated by work order must exist in
the new table.
 -cs <arg>      connect to a database server with the URL (e.g.,
                jdbc:postgresql://dbserver:5444/ttv)
 -p <arg>       specify Work Orders by a series of Work Order IDs, which
                are separated by commas (e.g., 1, 2, 3)
 -s <arg>       specify Work Orders by statuses, which are separated by
                commas (e.g., 2, 5, 6). Status code must be any of these
                integers: 2, 5 and 6. The following is the details of the
                status codes:
                2 - FAILED, the execution of this work order has failed;
                5 - CANCELLED, abnormal termination initiated by an
                operator;
                6 - COMPLETED, normal termination, which means the Work
                Order  is executed successfully.
 -start <arg>   specify the starting date of the time range when the Work
                Order is last updated (e.g., '2017-04-25 10:10:10' or
                '2017-04-25')
 -end <arg>     specify the end date of the time range when the work order
                is last updated (e.g., '2017-04-25 10:10:10' or
                '2017-04-25')
 -force         overwrite any existing template definition
 -wo            only migrate Work Orders
 -h,--help      print a help message describing all of command-line
                options