B4A.PM.SCRI.REPOSITORY_VERSION-LIST#SHARE

Summary

Details

Object type
SCRI
Object Subtype
-
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE/REPOSITORY
Active
true
Title
Retrieves a list of available versions of a b4A Package in a Repository
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:03:12
Last Modified
WRITER/B4A am: 2024-01-09 10:39:03 8 x
Last Used
-

Custom Attributes

No custom attributes defined.

Process

:set &line_prefix# = "@@"
:put_prompt_buffer BBCF_AGENT_OR_GROUP_I# = &B4AP_AGENT_OR_GROUP_I#
:put_prompt_buffer BBCF_LOGIN_I# = &B4AP_LOGIN_I#
:put_prompt_buffer BBCF_PATTERN_I# = &B4AP_PATTERN_I#
:put_prompt_buffer BBCF_DIRECTORY_I# = &B4AP_DIRECTORY_I#
:put_prompt_buffer BBCF_LINE_PREFIX_I# = "&line_prefix#"

:set &retv# = activate_uc_object( "BBC.FILEOPS.JOBP@IF.LIST-FILES", WAIT )
:set &list_files_runid# = get_published_value( &retv#, BBCF_LIST_FILES_RUNID_O# )
:p "runID: &list_files_runid#"
:set &rep# = prep_process_report( , &list_files_runid#, REP, "&line_prefix#*" )
:set &hnd# = create_process( NEW )
:set &ret# = put_process_line( &hnd#, "Version" )
:process &rep#
:  set &line# = get_process_line( &rep#, 1 )
:  set &line# = str_sub( &line#, "&line_prefix#", "" )
:  set &line# = str_sub( &line#, ".zip", "" )
:  define &array#, string, 2
:  fill &array#[] = str_split( &line#, "-" )
:  p "line: &line#"
:  set &ret# = put_process_line( &hnd#, "&array#[2]" )
:  p "ret: &ret#"
:endprocess

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

:publish &B4AP_VERSION_STREAM_O#, , TOP

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


#### Object Activations

<p>Found 1 object activations</p>

| Zeilennummer | Scriptzeile |
| ------------ | ----------- |
| 9 | `:set &retv# = activate_uc_object( "BBC.FILEOPS.JOBP@IF.LIST-FILES", WAIT )` |


### 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



#### B4A.PM.PRPT.REPOSITORY_VERSION-LIST#SHARE



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



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



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



 (B4AP_PATTERN_I#)
: *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.PM.VARA.REPOSITORY_VERSION-LIST#SHARE@EXEC | VARA | B4A.PM | PACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE/REPOSITORY |



#### Variable Publications





Found 1 potentially dangerous variable publications (TOP)

| Zeilennummer | Scriptzeile |
| ------------ | ----------- |
| 28 | ``:publish &B4AP_VERSION_STREAM_O#, , TOP`` |