Zum Hauptinhalt springen

B4A.BASE.JOBI.PROCESS-RESULTS

Description

Details

PropertyValue
TypeJOBI
FolderPACKAGES/BEST4AUTOMIC/B4A.BASE/SOURCE/RUN
TitleParses the results of b4A tool run and find out about how many steps were successful, failed and has been ignored.
Archive Key 1-
Archive Key 2-
CreatedWRITER/B4A am: 2019-10-18 10:35:10
Last ModifiedAndreas Büsching am: 2025-07-01 16:49:32 20 x
Last Used-

Process

!success: 63, failed: 0, ignored: 0
:set &found# = 'N'
:set &hnd# = prep_process_report( JOBS, &$RESTART_RUNID#, REP, "*success: *, failed: *, ignored: *", "COL=DELIMITER,DELIMITER=*,*" )
:process &hnd#
:  set &found# = 'Y'
:  set &success# = get_process_line( &hnd#, 1 )
:  set &failed# = get_process_line( &hnd#, 2 )
:  set &ignored# = get_process_line( &hnd#, 3 )
:  set &colon# = str_find_reverse( &success#, ":" )
:  set &colon# = &colon# + 2
:  set &success# = str_cut( &success#, &colon# )
:  set &colon# = str_find( &failed#, ":" )
:  set &colon# = &colon# + 2
:  set &failed# = str_cut( &failed#, &colon# )
:  set &colon# = str_find( &ignored#, ":" )
:  set &colon# = &colon# + 2
:  set &ignored# = str_cut( &ignored#, &colon# )
:endprocess
:close_process &hnd#
:if &found# = 'N'
:  set &hnd# = prep_process_report( JOBS, &$RESTART_RUNID#, REP, "*erfolgreich: *, fehlgeschlagen: *, ignoriert: *", "COL=DELIMITER,DELIMITER=*,*" )
:  process &hnd#
:    set &success# = get_process_line( &hnd#, 1 )
:    set &failed# = get_process_line( &hnd#, 2 )
:    set &ignored# = get_process_line( &hnd#, 3 )
:    set &colon# = str_find_reverse( &success#, ":" )
:    set &colon# = &colon# + 2
:    set &success# = str_cut( &success#, &colon# )
:    set &colon# = str_find( &failed#, ":" )
:    set &colon# = &colon# + 2
:    set &failed# = str_cut( &failed#, &colon# )
:    set &colon# = str_find( &ignored#, ":" )
:    set &colon# = &colon# + 2
:    set &ignored# = str_cut( &ignored#, &colon# )
:  endprocess
:  close_process &hnd#
:endif
:p "Success: '&success#'"
:p "Failed : '&failed#'"
:p "Ignored: '&ignored#'"
:publish &success#, B4AB_SUCCESS_O#, WORKFLOW
:publish &failed#, B4AB_FAILED_O#, WORKFLOW
:publish &ignored#, B4AB_IGNORED_O#, WORKFLOW

Variable Publications

Found 3 variable publications (WORKFLOW)

ZeilennummerScriptzeile
45:publish &success#, B4AB_SUCCESS_O#, WORKFLOW
46:publish &failed#, B4AB_FAILED_O#, WORKFLOW
47:publish &ignored#, B4AB_IGNORED_O#, WORKFLOW