B4A.PM.SCRI.COMPLIANCE-CHECK-STATUS
Summary
Details
- Object type
- SCRI
- Object Subtype
- -
- Object Folder
- PACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE/COMPLIANCE-CHECK
- Active
- true
- Title
- Determines status of compliance check
- Archive Key 1
- -
- Archive Key 2
- -
- Created
- WRITER/B4A am: 2022-03-24 08:03:14
- Last Modified
- WRITER/B4A am: 2024-01-09 10:39:05 8 x
- Last Used
- -
Custom Attributes
No custom attributes defined.
Process
:set &succeeded# = 0
:set &failed# = 0
:set &warned# = 0
:set &hnd# = prep_process_var( "&B4AP_XML_VARIABLE_I#" )
:process &hnd#
: set &key# = get_process_line( &hnd#, 1 )
: set &result# = get_var( "&B4AP_XML_VARIABLE_I#", &key#, '/best4Automic/pm/compliance/tests/test[@key="&key#"]/result/text()' )
: print "Result of test &key#: &result#"
: if &result# = "Succeeded"
: set &succeeded# = &succeeded# + 1
: else
: if &result# = "Warned"
: set &warned# = &warned# + 1
: else
: set &failed# = &failed# + 1
: endif
: endif
:endprocess
:close_process &hnd#
:set &succeeded# = format( &succeeded# )
:set &warned# = format( &warned# )
:set &failed# = format( &failed# )
! status is OK when there are no errors or warnings
:set &B4AP_COMPLIANCE_CHECK_RESULT_O# = "FAILED"
:if &failed# = 0
: if &warned# = 0
: set &B4AP_COMPLIANCE_CHECK_RESULT_O# = "OK"
: else
: set &B4AP_COMPLIANCE_CHECK_RESULT_O# = "WARNED"
: endif
:endif
:publish &B4AP_COMPLIANCE_CHECK_RESULT_O#, , WORKFLOW```
### Runtime
ERT Method
: DYNAMIC_AVERAGE
Current ERT
: _00_ : _01_ : _01_
No. of past runs
: 0
+ERT Correction %
: 0
### Sync
No sync definitions.
### Variables
No variables defined.
### Prompt Sets
No promptsets defined.
### Automatic Deactivation
Deactivate on Finish
: ALWAYS
Deactivate After
: 0
### Runtime Parameters
AE Priority
: 0
Timezone
: \-
Generate at runtime
: _true_
Max. Parallel Tasks
: 0
### Usage
| Parent | Type | Package | Folder |
| ------ | ---- | ------- | ------ |
| B4A.PM.JOBP.COMPLIANCE-CHECK | JOBP | B4A.PM | PACKAGES/BEST4AUTOMIC/B4A.PM/SERVICES |
#### Variable Publications
Found 1 variable publications (WORKFLOW)
| Zeilennummer | Scriptzeile |
| ------------ | ----------- |
| 37 | ``:publish &B4AP_COMPLIANCE_CHECK_RESULT_O#, , WORKFLOW`` |