PMCORE-2522

This commit is contained in:
Andrea Adamczyk
2020-12-08 15:46:38 -04:00
parent 1453b4c7a6
commit 179bceaad5

View File

@@ -11,7 +11,8 @@ CLI::taskDescription(<<<EOT
Print information about the current system and any specified workspaces. Print information about the current system and any specified workspaces.
If no workspace is specified, show information about all available workspaces If no workspace is specified, show information about all available workspaces
EOT); EOT
);
CLI::taskArg('workspace-name', true, true); CLI::taskArg('workspace-name', true, true);
CLI::taskRun("run_info"); CLI::taskRun("run_info");
@@ -27,7 +28,8 @@ CLI::taskDescription(<<<EOT
A backup archive will contain all information about the specified workspace A backup archive will contain all information about the specified workspace
so that it can be restored later. The archive includes a database dump and so that it can be restored later. The archive includes a database dump and
all the workspace files. all the workspace files.
EOT); EOT
);
CLI::taskArg('workspace', false); CLI::taskArg('workspace', false);
CLI::taskArg('backup-file', true); CLI::taskArg('backup-file', true);
CLI::taskOpt("filesize", "Split the backup file in multiple files which are compressed. The maximum size of these files is set to MAX-SIZE in megabytes. If MAX-SIZE is not set, then it is 1000 megabytes by default. It may be necessary to use this option if using a 32 bit Linux/UNIX system which limits its maximum file size to 2GB. This option does not work on Windows systems.", "s:", "filesize="); CLI::taskOpt("filesize", "Split the backup file in multiple files which are compressed. The maximum size of these files is set to MAX-SIZE in megabytes. If MAX-SIZE is not set, then it is 1000 megabytes by default. It may be necessary to use this option if using a 32 bit Linux/UNIX system which limits its maximum file size to 2GB. This option does not work on Windows systems.", "s:", "filesize=");
@@ -43,7 +45,8 @@ CLI::taskDescription(<<<EOT
Specify the WORKSPACE to restore to a different workspace name. Otherwise, Specify the WORKSPACE to restore to a different workspace name. Otherwise,
it will restore to the same workspace name as the original backup. it will restore to the same workspace name as the original backup.
EOT); EOT
);
CLI::taskArg('backup-file', false); CLI::taskArg('backup-file', false);
CLI::taskArg('workspace', true); CLI::taskArg('workspace', true);
CLI::taskOpt("overwrite", "If a workspace already exists, overwrite it.", "o", "overwrite"); CLI::taskOpt("overwrite", "If a workspace already exists, overwrite it.", "o", "overwrite");
@@ -67,7 +70,8 @@ CLI::taskDescription(<<<EOT
to present the correct information in the cases inbox. This command will to present the correct information in the cases inbox. This command will
create the table and populate it with the right information. This only needs create the table and populate it with the right information. This only needs
to be used after upgrading ProcessMaker or if the cases inbox is out of sync. to be used after upgrading ProcessMaker or if the cases inbox is out of sync.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskOpt("lang", "Specify the language to rebuild the case cache list. If not specified, then 'en' (English) will be used by default.\n Ex: -lfr (French) Ex: --lang=zh-CN (Mainland Chinese)", "l:", "lang="); CLI::taskOpt("lang", "Specify the language to rebuild the case cache list. If not specified, then 'en' (English) will be used by default.\n Ex: -lfr (French) Ex: --lang=zh-CN (Mainland Chinese)", "l:", "lang=");
CLI::taskRun("run_cacheview_upgrade"); CLI::taskRun("run_cacheview_upgrade");
@@ -84,7 +88,8 @@ CLI::taskDescription(<<<EOT
tables to match this new schema. Use this command to fix corrupted database tables to match this new schema. Use this command to fix corrupted database
schemas or after ProcessMaker has been upgraded, so the database schemas will schemas or after ProcessMaker has been upgraded, so the database schemas will
be changed to match the new ProcessMaker code. be changed to match the new ProcessMaker code.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_database_upgrade"); CLI::taskRun("run_database_upgrade");
@@ -99,7 +104,8 @@ CLI::taskDescription(<<<EOT
This is the same as database-upgrade but it works with schemas provided This is the same as database-upgrade but it works with schemas provided
by plugins. This is useful if plugins are installed that include by plugins. This is useful if plugins are installed that include
database schemas. database schemas.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_plugins_database_upgrade"); CLI::taskRun("run_plugins_database_upgrade");
@@ -113,7 +119,8 @@ CLI::taskDescription(<<<EOT
This command will go through each language installed in ProcessMaker and This command will go through each language installed in ProcessMaker and
update the translations for the workspace(s) to match the current version of update the translations for the workspace(s) to match the current version of
ProcessMaker. ProcessMaker.
EOT); EOT
);
CLI::taskArg('workspace-name', true, true); CLI::taskArg('workspace-name', true, true);
CLI::taskOpt('noxml', 'If this option is enabled, the XML files will not be modified.', 'NoXml', 'no-xml'); CLI::taskOpt('noxml', 'If this option is enabled, the XML files will not be modified.', 'NoXml', 'no-xml');
CLI::taskOpt('nomafe', 'If this option is enabled, the Front End (BPMN Designer and Bootstrap Forms) translation file will not be modified.', 'NoMafe', 'no-mafe'); CLI::taskOpt('nomafe', 'If this option is enabled, the Front End (BPMN Designer and Bootstrap Forms) translation file will not be modified.', 'NoMafe', 'no-mafe');
@@ -124,7 +131,8 @@ CLI::taskDescription(<<<EOT
Migrating cases folders of the workspaces Migrating cases folders of the workspaces
Specify the WORKSPACE to migrate from a existing workspace. Specify the WORKSPACE to migrate from a existing workspace.
EOT); EOT
);
//CLI::taskArg('workspace', true); //CLI::taskArg('workspace', true);
CLI::taskOpt("workspace", "Select the workspace whose case folders will be migrated, if multiple workspaces are present in the server.\n Ex: -wworkflow. Ex: --workspace=workflow", "w:", "workspace="); CLI::taskOpt("workspace", "Select the workspace whose case folders will be migrated, if multiple workspaces are present in the server.\n Ex: -wworkflow. Ex: --workspace=workflow", "w:", "workspace=");
CLI::taskRun("runStructureDirectories"); CLI::taskRun("runStructureDirectories");
@@ -139,7 +147,8 @@ CLI::taskDescription(<<<EOT
This command will read the system schema and data in an attempt to verify the database This command will read the system schema and data in an attempt to verify the database
integrity. Use this command to check the database data consistency before any costly integrity. Use this command to check the database data consistency before any costly
database-upgrade operation is planned to be executed. database-upgrade operation is planned to be executed.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_database_verify_consistency"); CLI::taskRun("run_database_verify_consistency");
@@ -154,7 +163,8 @@ CLI::taskDescription(<<<EOT
This command will read the Cancelled, Completed, Inbox, My Inbox, participated This command will read the Cancelled, Completed, Inbox, My Inbox, participated
unassigned data in an attempt to verify the database integrity. It's recommended unassigned data in an attempt to verify the database integrity. It's recommended
to run this script after the migrate cases job has been executed. to run this script after the migrate cases job has been executed.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_database_verify_migration_consistency"); CLI::taskRun("run_database_verify_migration_consistency");
@@ -165,7 +175,8 @@ CLI::taskDescription(<<<EOT
Specify the workspaces, the processes in this workspace will be updated. Specify the workspaces, the processes in this workspace will be updated.
If no workspace is specified, the command will be run in all workspaces. If no workspace is specified, the command will be run in all workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_migrate_itee_to_dummytask"); CLI::taskRun("run_migrate_itee_to_dummytask");
@@ -178,7 +189,8 @@ CLI::taskDescription(<<<EOT
If no workspace is specified, the command will be run in all workspaces. If no workspace is specified, the command will be run in all workspaces.
More than one workspace can be specified. More than one workspace can be specified.
EOT); EOT
);
CLI::taskArg("workspace-name", true, true); CLI::taskArg("workspace-name", true, true);
CLI::taskRun("run_check_workspace_disabled_code"); CLI::taskRun("run_check_workspace_disabled_code");
@@ -190,7 +202,8 @@ CLI::taskDescription(<<<EOT
If no workspace is specified, then the tables schema will be upgraded or If no workspace is specified, then the tables schema will be upgraded or
migrate on all available workspaces. migrate on all available workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_migrate_new_cases_lists"); CLI::taskRun("run_migrate_new_cases_lists");
@@ -202,7 +215,8 @@ CLI::taskDescription(<<<EOT
If no workspace is specified, then the tables schema will be upgraded or If no workspace is specified, then the tables schema will be upgraded or
migrate on all available workspaces. migrate on all available workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_migrate_list_unassigned"); CLI::taskRun("run_migrate_list_unassigned");
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
@@ -214,7 +228,8 @@ CLI::taskDescription(<<<EOT
Specify the workspace, the self-service cases in this workspace will be updated. Specify the workspace, the self-service cases in this workspace will be updated.
If no workspace is specified, the command will be running in all workspaces. If no workspace is specified, the command will be running in all workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_migrate_indexing_acv"); CLI::taskRun("run_migrate_indexing_acv");
@@ -226,7 +241,8 @@ CLI::taskDescription(<<<EOT
If no workspace is specified, then the tables schema will be upgraded or If no workspace is specified, then the tables schema will be upgraded or
migrate on all available workspaces. migrate on all available workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskOpt("lang", "Specify the language to migrate the content data. If not specified, then 'en' (English) will be used by default.\n Ex: -lfr (French) Ex: --lang=zh-CN (Mainland Chinese)", "l:", "lang="); CLI::taskOpt("lang", "Specify the language to migrate the content data. If not specified, then 'en' (English) will be used by default.\n Ex: -lfr (French) Ex: --lang=zh-CN (Mainland Chinese)", "l:", "lang=");
CLI::taskRun("run_migrate_content"); CLI::taskRun("run_migrate_content");
@@ -239,7 +255,8 @@ CLI::taskDescription(<<<EOT
If no workspace is specified, then the tables schema will be upgraded or If no workspace is specified, then the tables schema will be upgraded or
migrated to all available workspaces. migrated to all available workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_migrate_plugin"); CLI::taskRun("run_migrate_plugin");
@@ -250,7 +267,8 @@ CLI::taskDescription(<<<EOT
Specify the workspaces, the self-service cases in this workspace will be updated. Specify the workspaces, the self-service cases in this workspace will be updated.
If no workspace is specified, the command will be run in all workspaces. If no workspace is specified, the command will be run in all workspaces.
EOT); EOT
);
CLI::taskArg('workspace', true, true); CLI::taskArg('workspace', true, true);
CLI::taskRun("run_migrate_self_service_value"); CLI::taskRun("run_migrate_self_service_value");
@@ -262,7 +280,8 @@ CLI::taskRun("run_migrate_self_service_value");
CLI::taskName('list-ids'); CLI::taskName('list-ids');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Complete the PRO_ID and USR_ID in the LIST_* tables. Complete the PRO_ID and USR_ID in the LIST_* tables.
EOT); EOT
);
CLI::taskOpt("lang", "", "lLANG", "lang=LANG"); CLI::taskOpt("lang", "", "lLANG", "lang=LANG");
CLI::taskArg('workspace'); CLI::taskArg('workspace');
CLI::taskRun("cliListIds"); CLI::taskRun("cliListIds");
@@ -273,7 +292,8 @@ CLI::taskRun("cliListIds");
CLI::taskName('upgrade-content'); CLI::taskName('upgrade-content');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Upgrade the content table Upgrade the content table
EOT); EOT
);
CLI::taskArg('workspace'); CLI::taskArg('workspace');
CLI::taskRun("run_upgrade_content"); CLI::taskRun("run_upgrade_content");
@@ -288,7 +308,8 @@ CLI::taskDescription(<<<EOT
incorrectly, which is caused by importing processes where the data directory incorrectly, which is caused by importing processes where the data directory
of ProcessMaker has different routes. Modified files are backed up with the of ProcessMaker has different routes. Modified files are backed up with the
extension '.backup' in the same directory. extension '.backup' in the same directory.
EOT); EOT
);
CLI::taskArg('workspace'); CLI::taskArg('workspace');
CLI::taskRun("regenerate_pmtable_classes"); CLI::taskRun("regenerate_pmtable_classes");
@@ -299,7 +320,8 @@ CLI::taskRun("regenerate_pmtable_classes");
CLI::taskName('migrate-history-data'); CLI::taskName('migrate-history-data');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Migrate the content of the APP_HISTORY table to the APP_DATA_CHANGE_LOG table. Migrate the content of the APP_HISTORY table to the APP_DATA_CHANGE_LOG table.
EOT); EOT
);
CLI::taskArg('workspace'); CLI::taskArg('workspace');
CLI::taskRun('migrate_history_data'); CLI::taskRun('migrate_history_data');
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
@@ -310,7 +332,8 @@ CLI::taskRun('migrate_history_data');
CLI::taskName('clear-dyn-content-history-data'); CLI::taskName('clear-dyn-content-history-data');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Clear History of Use data from APP_HISTORY table Clear History of Use data from APP_HISTORY table
EOT); EOT
);
CLI::taskArg('workspace'); CLI::taskArg('workspace');
CLI::taskRun("run_clear_dyn_content_history_data"); CLI::taskRun("run_clear_dyn_content_history_data");
@@ -320,7 +343,8 @@ CLI::taskRun("run_clear_dyn_content_history_data");
CLI::taskName('sync-forms-with-info-from-input-documents'); CLI::taskName('sync-forms-with-info-from-input-documents');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Sync JSON definition of the Forms with Input Documents information Sync JSON definition of the Forms with Input Documents information
EOT); EOT
);
CLI::taskArg('workspace'); CLI::taskArg('workspace');
CLI::taskRun("run_sync_forms_with_info_from_input_documents"); CLI::taskRun("run_sync_forms_with_info_from_input_documents");
@@ -330,7 +354,8 @@ CLI::taskRun("run_sync_forms_with_info_from_input_documents");
CLI::taskName('remove-unused-files'); CLI::taskName('remove-unused-files');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Remove the deprecated files. Remove the deprecated files.
EOT); EOT
);
CLI::taskRun("remove_deprecated_files"); CLI::taskRun("remove_deprecated_files");
/*********************************************************************/ /*********************************************************************/
@@ -342,7 +367,8 @@ CLI::taskDescription(<<<EOT
If no workspace is specified, the command will be run in all workspaces. If no workspace is specified, the command will be run in all workspaces.
More than one workspace can be specified. More than one workspace can be specified.
EOT); EOT
);
CLI::taskArg("workspace-name", true, true); CLI::taskArg("workspace-name", true, true);
CLI::taskRun("run_check_queries_incompatibilities"); CLI::taskRun("run_check_queries_incompatibilities");
/*********************************************************************/ /*********************************************************************/
@@ -358,7 +384,8 @@ Example:
To see other command options please refer to the artisan help. To see other command options please refer to the artisan help.
php artisan --help php artisan --help
EOT); EOT
);
CLI::taskRun("run_artisan"); CLI::taskRun("run_artisan");
/** /**
@@ -367,23 +394,16 @@ CLI::taskRun("run_artisan");
CLI::taskName('documents-add-font'); CLI::taskName('documents-add-font');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Add a font to be used in Documents generation (TinyMCE editor and/or TCPDF library). Add a font to be used in Documents generation (TinyMCE editor and/or TCPDF library).
EOT); EOT
CLI::taskOpt( );
'type', CLI::taskOpt('type', <<<EOT
<<<EOT
Can be "TrueType" or "TrueTypeUnicode", if the option is not specified the default value is "TrueType" Can be "TrueType" or "TrueTypeUnicode", if the option is not specified the default value is "TrueType"
EOT, EOT
't', ,'t', 'type=');
'type=' CLI::taskOpt('tinymce', <<<EOT
);
CLI::taskOpt(
'tinymce',
<<<EOT
Can be "true" or "false", if the option is not specified the default value is "true". If the value is "false" the optional arguments [FRIENDLYNAME] [FONTPROPERTIES] are omitted. Can be "true" or "false", if the option is not specified the default value is "true". If the value is "false" the optional arguments [FRIENDLYNAME] [FONTPROPERTIES] are omitted.
EOT, EOT
'tm', ,'tm', 'tinymce=');
'tinymce='
);
CLI::taskArg('fontFileName', false); CLI::taskArg('fontFileName', false);
CLI::taskArg('friendlyName', true); CLI::taskArg('friendlyName', true);
CLI::taskArg('fontProperties', true); CLI::taskArg('fontProperties', true);
@@ -395,7 +415,8 @@ CLI::taskRun('documents_add_font');
CLI::taskName('documents-list-registered-fonts'); CLI::taskName('documents-list-registered-fonts');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
List the registered fonts. List the registered fonts.
EOT); EOT
);
CLI::taskRun('documents_list_registered_fonts'); CLI::taskRun('documents_list_registered_fonts');
/** /**
@@ -404,7 +425,8 @@ CLI::taskRun('documents_list_registered_fonts');
CLI::taskName('documents-remove-font'); CLI::taskName('documents-remove-font');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Remove a font used in Documents generation (TinyMCE editor and/or TCPDF library). Remove a font used in Documents generation (TinyMCE editor and/or TCPDF library).
EOT); EOT
);
CLI::taskArg('fontFileName', false); CLI::taskArg('fontFileName', false);
CLI::taskRun('documents_remove_font'); CLI::taskRun('documents_remove_font');
@@ -435,7 +457,8 @@ CLI::taskRun('convert_old_web_entries');
CLI::taskName('migrate-case-title-to-threads'); CLI::taskName('migrate-case-title-to-threads');
CLI::taskDescription(<<<EOT CLI::taskDescription(<<<EOT
Populate the new column APPLICATION.APP_TITLE into the APP_DELEGATION table Populate the new column APPLICATION.APP_TITLE into the APP_DELEGATION table
EOT); EOT
);
CLI::taskArg('WORKSPACE', false); CLI::taskArg('WORKSPACE', false);
CLI::taskArg('caseNumberFrom', true); CLI::taskArg('caseNumberFrom', true);
CLI::taskArg('caseNumberTo', true); CLI::taskArg('caseNumberTo', true);