Part of Reportek.RemoteApplication View In Hierarchy
A computerised application, executed by an activity.
It executes a set of operations on a remote server and generates a feedback object
into the envelope as result of these.
The instance data for the RemoteApplication is stored in the workitem
as an additional property - app_name - contaning a dictionary like:
{
'analyze': {code, retries_left, last_error, next_run},
'getResult': {jobID: {code, retries_left, last_error, next_run, fileURL}}
}
First, a call is made to the 'analyze' function from the remote service which retireves
the list of files that will be analyzed along with their jobIDs
Second, the 'getResult' remote service function is called for every job
Possible codes for app_name['analyze']:
0 - started
2 - nothing to do
1 - done
-2 - failed
Possible codes for app_name['getResult'][jobID]:
0 - processing
1 - result succefully brought
-2 - failed
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 84 | Method | __init__ | Initialize a new instance of Document |
| 98 | Method | __setstate__ | Undocumented |
| 104 | Method | manage_settings | Change properties of the QA Application |
| 118 | Method | __call__ | Runs the Remote Aplication for the first time |
| 163 | Method | callApplication | Called on regular basis |
| 211 | Method | __analyzeDocuments | Makes an XML/RPC call to the 'analyzeXMLFiles' function from the XQuery service |
| 265 | Method | __getResult4XQueryServiceJob | Makes an XML/RPC call to the 'getResult' function from the remote service |
| 312 | Method | __initializeWorkitem | Adds QA-specific extra properties to the workitem |
| 323 | Method | __manageAutomaticProperty | The instance data for the RemoteApplication is stored in the workitem |
| 353 | Method | decodeAppData | Return a string which can be displayed on the history page of the envelope |
| 386 | Method | __finishApplication | Completes the workitem and forwards it |
The instance data for the RemoteApplication is stored in the workitem
as an additional property - app_name - contaning a dictionary like:
{
'analyze': {code, retries_left, last_error, next_run},
'getResult': {jobID: {code, retries_left, last_error, next_run, fileURL}}
}
Possible codes for app_name['analyze']:
0 - started
1 - done
-2 - failed
2 - nothing found to assess
Possible codes for app_name['getResult'][jobID]:
0 - started
1 - result succefully brought
-2 - failed