GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Server::Workflow::Activity::Tools::Connector::GetValue(3) User Contributed Perl Documentation OpenXPKI::Server::Workflow::Activity::Tools::Connector::GetValue(3)

OpenXPKI::Server::Workflow::Activity::Tools::Connector::GetValue

This activity reads a (set of) values from the config connector into the context.

mode (default: scalar)
* scalar: return a single value, requires target_key * array: return a single item which is a list, requires target_key * keys: as array, value is holding the keys at the given node * map: map multiple values from the result using a map, requires attrmap * hash: import the full result of the get_hash call, see note below!
delimiter (default: dot)
The delimiter to split the path string, used in regex context!
config_path
The path to the config item as string, split up at delimiter. If set, config_key, config_prefix, config_suffix are not used.
config_key
A single value to use as key when building the path using config_prefix and/or config_suffix. Use if your key might contain the delimiter character.
config_prefix, config_suffix
String to be used around config_key to build the full path, see config_path.
attrmap
Mandatory in mode = map, defines the mapping rules in the format:

    context_name1 => connector_name1, context_name2 => connector_name2
    
target_key
The name of the context parameter to which the result should be written. Mandatory when mode is array or scalar.
default_value
The default value to be returned if the connector did not return a result. Only used with mode = scalar

    class: OpenXPKI::Server::Workflow::Activity::Tools::Connector::GetValue
    param:
        _map_config_path: smartcard.policy.certs.type.[% context.cert_type %].escrow_key
        target_key: flag_need_escrow

Creator usually contains the delimiter char, so we must use path assembly (otherwise the username is split into path elements).

    class: OpenXPKI::Server::Workflow::Activity::Tools::Connector::GetValue
    param:
        mode: map
        config_prefix: smartcard.users.by_mail
        _map_config_key: "[% context.creator %]"
        attrmap: auth2_mail -> mail, auth2_cn -> cn

    class: OpenXPKI::Server::Workflow::Activity::Tools::Connector::GetValue
    param:
        mode: array
        config_prefix: smartcard.policy.certs.type
        _map_config_key: "[% context.cert_type %]"
        config_suffix: allowed_profiles
        target_key: buid_profiles
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.