PMCORE-1203 Help on how batch routing feature works and help to debug the code with a client
This commit is contained in:
21
workflow/engine/bin/tasks/cliPopulateTable.php
Normal file
21
workflow/engine/bin/tasks/cliPopulateTable.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
CLI::taskName("populate-table");
|
||||
CLI::taskRun("populateTable");
|
||||
CLI::taskDescription("\nThis function populates the report table with the APP_DATA data");
|
||||
CLI::taskArg("workspace", false);
|
||||
|
||||
/**
|
||||
* This function populates the report table with the APP_DATA data.
|
||||
* @return void
|
||||
*/
|
||||
function populateTable($options): void
|
||||
{
|
||||
//get options
|
||||
$workspaceName = $options[0];
|
||||
$query = base64_decode($options[1]);
|
||||
$isRbac = (bool) $options[2];
|
||||
|
||||
$workspace = new WorkspaceTools($workspaceName);
|
||||
$workspace->populateTableReport($query, $isRbac);
|
||||
}
|
||||
Reference in New Issue
Block a user