HOR-1259: Migrate Itee to Dummytask
HOR-1259 HOR-1259 view
This commit is contained in:
@@ -229,6 +229,18 @@ EOT
|
||||
CLI::taskArg('workspace', true, true);
|
||||
CLI::taskRun("run_migrate_counters");
|
||||
|
||||
CLI::taskName('migrate-itee-to-dummytask');
|
||||
CLI::taskDescription(<<<EOT
|
||||
Migrate the Intermediate throw Email Event to Dummy task
|
||||
|
||||
Specify the workspaces, the processes in this workspace will be updated.
|
||||
|
||||
If no workspace is specified, the command will be run in all workspaces.
|
||||
EOT
|
||||
);
|
||||
CLI::taskArg('workspace', true, true);
|
||||
CLI::taskRun("run_migrate_itee_to_dummytask");
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
CLI::taskName("check-workspace-disabled-code");
|
||||
CLI::taskDescription(<<<EOT
|
||||
@@ -726,6 +738,22 @@ function verifyMigratedDataConsistency($args)
|
||||
return $inconsistentRecords;
|
||||
}
|
||||
|
||||
function run_migrate_itee_to_dummytask($args, $opts){
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$opts = $filter->xssFilterHard($opts);
|
||||
$args = $filter->xssFilterHard($args);
|
||||
$arrayWorkspace = get_workspaces_from_args($args);
|
||||
foreach ($arrayWorkspace as $workspace) {
|
||||
try {
|
||||
$ws = new workspaceTools($workspace->name);
|
||||
$res = $ws->migrateIteeToDummytask($workspace->name);
|
||||
} catch (Exception $e) {
|
||||
echo "> Error: ".CLI::error($e->getMessage()) . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
function run_check_workspace_disabled_code($args, $opts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user