B4A.WEB.JOBI.SETTINGS

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.WEB/SOURCE
Title
Reads settings for web services
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-02-02 09:19:16
Last Modified
Timon Schnakenberg am: 2022-02-17 15:11:31 3 x
Last Used
-

Description

The include reads the settings for web services. It fetches the token for the technical user and the base URL to the b4A RESTful API.

Parameter

Input

If called in workflow objects the output variables are:

&B4AW_TOKEN_O# authentication token for the technical

&B4AW_BASE_URL_O# base url to the b4A RESTful API

Example

    :include B4A.WEB.JOBI.SETTINGS

Process

:set &vara# = "B4A.WEB.VARA.SETTINGS"
:set &LOGIN_OBJECT# = get_var(&vara#,LOGIN_OBJECT)
:set &LOGIN_TYPE# = get_var(&vara#,LOGIN_TYPE)
:set &LOGIN_USER# = get_var(&vara#,LOGIN_USER)
:set &B4AW_TOKEN_O# = get_login(&LOGIN_OBJECT#, "&LOGIN_USER#", &LOGIN_TYPE#, PASSWORD)
:set &B4AW_BASE_URL_O# = get_var(&vara#, BASE_URL)
:set &B4AW_ENCODING_O# = get_var(&vara#, ENCODING)