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


Manual Reference Pages  -  OPENXPKI::SERVER::WORKFLOW::ACTIVITY::TOOLS::CONNECTOR::GETVALUE (3)

.ds Aq ’

Name

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

CONTENTS

Description

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

Configuration

    Activity parameters

mode (default: scalar) * scalar: return a single value, requires target_key * array: return a single item which is a list, requires target_key * 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 <B>notB> 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

Examples

    scalar mode, simple path



    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



    hash map mode with path assembly

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



    array mode with path assembly



    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



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


perl v5.20.3 OPENXPKI::SERVER::WORKFLOW::ACTIVITY::TOOLS::CONNECTOR::GETVALUE (3) 2016-04-03

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