#include <Tools/WorkflowValidation/BatchApplication/processworkflows.h>
Inherits QObject.
|
| ProcessWorkflows (QStack< QString > fileStack, QList< LogWorkflow * > &runningLog, bool runWorkflows, bool staticAnalyze, QStringList dependencyComponents, bool analyzeStructure, bool resaveWorkflows, int timeoutInterval, bool autoAddConfigEntries, bool showRepeatedEntries, bool loggingToFile) |
|
DataExecution::SerializedItem | getConfigItem (const QString &workflow) |
|
void | processWorkflow (const QString &workflow) |
|
QString | resultsInBrief () |
|
void | start () |
|
int | summariseDeprecationWarnings (bool logZeroCount=false) |
|
int | summariseErrors (bool logZeroCount=false) |
|
int | summariseTimeouts () |
|
int | summariseWarnings (bool logZeroCount=false) |
|
◆ ProcessWorkflows()
ProcessWorkflows |
( |
QStack< QString > |
fileStack, |
|
|
QList< LogWorkflow * > & |
runningLog, |
|
|
bool |
runWorkflows, |
|
|
bool |
staticAnalyze, |
|
|
QStringList |
dependencyComponents, |
|
|
bool |
analyzeStructure, |
|
|
bool |
resaveWorkflows, |
|
|
int |
timeOut, |
|
|
bool |
autoAddConfigEntries, |
|
|
bool |
showRepeatedEntries, |
|
|
bool |
loggingToFile |
|
) |
| |
- Parameters
-
fileStack | QStack of workflow files to analyze. |
runningLog | List of LogWorkflow items (one will be created per workflow loaded) |
runWorkflows | True if the workflows should be run after loading |
staticAnalyze | True if the workflows should be statically analyzed after loading |
dependencyComponents | Dat for statically analyzing workflows |
analyzeStructure | Generate the analyse workflow report |
resaveWorkflows | True if the workflows should be resaved after loading |
timeOut | Timeout interval in ms (per workflow run, ignored if the workflows are only loaded) |
autoAddConfigEntries | True if allowed to creates an entry if it does not exist |
showRepeatedEntries | True if repeated log messages from a given workflow should all be shown |
loggingToFile | True if the output is being redirected to a file |
◆ addWorkflowEntry()
◆ analyseWorkflowStructure()
void analyseWorkflowStructure |
( |
const QString & |
filename | ) |
|
|
protected |
◆ find_audited_images()
Finds the list of images that should be generated by the given workflow, as given by the workflow-analyse.config file These should be set up inside "image" child elements of the "audited_images" element of the workflow item
◆ find_audited_logs()
Finds the list of log strings that should be generated by the given workflow, as given by the workflow-analyse.config file These should be set up as text inside "log" child elements of the "audited_log" element of the workflow item
◆ find_required_plugins()
A list of required plugins can be set in the config file, if any of these are absent the system does not try to load or run the workflow
◆ finished
◆ getConfigItem()
Finds the Serialized item matching the given workflow inside the local workflow-analyse.config file
Creates an entry if it does not exist, creates a config file if it does not exist (subject to write permissions...)
◆ logMessageCount()
void logMessageCount |
( |
uint |
count, |
|
|
QMap< QString, uint > |
map, |
|
|
const QString & |
tag, |
|
|
bool |
logZeroCount = false |
|
) |
| const |
|
protected |
Logs a summary of the messages generated by the workflow stack, only logs those workflows that generated messages
◆ onWorkflowFinished
void onWorkflowFinished |
( |
const QString & |
workflow | ) |
|
|
slot |
◆ onWorkflowTimeout
void onWorkflowTimeout |
( |
| ) |
|
|
slot |
◆ processWorkflow()
void processWorkflow |
( |
const QString & |
workflow | ) |
|
◆ resultsInBrief()
QString resultsInBrief |
( |
| ) |
|
Returns a one-line result summary
◆ start()
Start processing the stack of workflows
◆ staticAnalyzeWorkflow()
void staticAnalyzeWorkflow |
( |
const QString & |
filename | ) |
|
|
protected |
Run static analyze on the specified workspace file, print out information.
◆ summariseDeprecationWarnings()
int summariseDeprecationWarnings |
( |
bool |
logZeroCount = false | ) |
|
Logs a summary of the warnings generated by the workflow stack, only logs those workflows that generated warnings
- Parameters
-
logZeroCount | Log a result of zero |
- Returns
- The total number of unexpected deprecated operation warnings
◆ summariseErrors()
int summariseErrors |
( |
bool |
logZeroCount = false | ) |
|
Logs a summary of the errors generated by the workflow stack, only logs those workflows that generated errors
- Parameters
-
logZeroCount | Log a result of zero |
- Returns
- The total number of unexpected errors generated
◆ summariseTimeouts()
int summariseTimeouts |
( |
| ) |
|
Logs a summary of the workflows that were aborted due to running for longer than the timeout interval
- Returns
- The total number of workflows which timed out
◆ summariseWarnings()
int summariseWarnings |
( |
bool |
logZeroCount = false | ) |
|
Logs a summary of the warnings generated by the workflow stack, only logs those workflows that generated warnings
- Parameters
-
logZeroCount | Log a result of zero |
- Returns
- The total number of unexpected general warnings
◆ workflowFinished
void workflowFinished |
( |
const QString & |
fileName | ) |
|
|
signal |