B4A.BASE.SCRI.DATASTREAM

Summary

Details

Object type
SCRI
Object Subtype
-
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.BASE/SOURCE/DATASTREAM
Active
true
Title
Provides the datastream of a b4A module as a process (e.g. for exec variables)
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:01:44
Last Modified
WRITER/B4A am: 2024-01-09 10:09:57 14 x
Last Used
-

Custom Attributes

No custom attributes defined.

Process

:put_prompt_buffer B4AB_MODULE_I# = &B4AB_MODULE_I#
:put_prompt_buffer B4AB_CONNECTION_I# = &B4AB_CONNECTION_I#
:put_prompt_buffer B4AB_CONFIGURATION_I# = "&B4AB_CONFIGURATION_I#&nl#log-levels=DATASTREAM"

:set &retv# = activate_uc_object( "B4A.BASE.JOBP@IF.RUN", WAIT )
:set &b4a_runid# = get_published_value( &retv#, B4AB_RUNID_O# )
:p "runID: &b4a_runid#"
:set &rep# = prep_process_report( , &B4A_RUNID#, REP, "&DS_PREFIX#*" )
:set &hnd# = create_process( NEW )
:process &rep#
:  set &line# = get_process_line( &rep#, 1 )
:  set &line# = str_sub( &line#, "&DS_PREFIX#", "" )
:  p "line: &line#"
:  if str_ends_with( &line#, "&DS_SEPARATOR#" ) = 'Y'
:    set &line# = "&line#  "
:  endif
:  set &ret# = put_process_line( &hnd#, &line#, "&DS_SEPARATOR#" )
:  p "ret: &ret#"
:endprocess

:set &B4AB_DATASTREAM_O# = save_process( &hnd# )

:publish &B4AB_DATASTREAM_O#, , TOP

:close_process &hnd#
:close_process &rep#```


#### Object Activations

<p>Found 1 object activations</p>

| Zeilennummer | Scriptzeile |
| ------------ | ----------- |
| 6 | `:set &retv# = activate_uc_object( "B4A.BASE.JOBP@IF.RUN", WAIT )` |


### Runtime




ERT Method
: DYNAMIC_AVERAGE





Current ERT
: _00_ : _02_ : _02_
No. of past runs
: 0
+ERT Correction %
: 0











### Sync



No sync definitions.


### Variables



No variables defined.


### Prompt Sets



#### B4A.BASE.PRPT.DATASTREAM



 (B4AB_MODULE_I#)
: *Tooltip*: 
: *Type*: 
: *Default Value*: 



 (B4AB_CONNECTION_I#)
: *Tooltip*: 
: *Type*: 
: *Default Value*: {B4A.BASE.VARA.SETTINGS,DEFAULT_CONNECTION,1}



 (B4AB_CONFIGURATION_I#)
: *Tooltip*: 
: *Type*: 
: *Default Value*: 



 (DS_PREFIX#)
: *Tooltip*: 
: *Type*: 
: *Default Value*: @B4A_STREAM@



 (DS_SEPARATOR#)
: *Tooltip*: 
: *Type*: 
: *Default Value*: §§






### 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.BASE.VARA@EXEC.DATASTREAM#EXAMPLE | VARA | B4A.BASE | PACKAGES/BEST4AUTOMIC/B4A.BASE/SOURCE/DATASTREAM |
| B4A.PM.VARA@EXEC.DATASTREAM#PACKAGE-LIST | VARA | B4A.PM | PACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE |
| B4A.PM.VARA@EXEC.GET_METADATA_REMOTE | VARA | B4A.PM | PACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE/BUILD-RELEASE |



#### Variable Publications





Found 1 potentially dangerous variable publications (TOP)

| Zeilennummer | Scriptzeile |
| ------------ | ----------- |
| 24 | ``:publish &B4AB_DATASTREAM_O#, , TOP`` |