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::CONDITION (3)

.ds Aq ’

Name

OpenXPKI::Server::Workflow::Condition

CONTENTS

Description

Base class for OpenXPKI Conditions that implements parameter magic. Note that you need to name your evaluation method _evaluate, with a dash as prefix! Otherwise the necessary initialisation for the parameter magic will not work.

It is NOT mandatory to use this class, subclassing Workflow::Condition is also fine if you do not need the extra features.

Parameter mapping

Parameters in the configuration block that start with _map_ are parsed using template toolkit and imported into the namespace of the class.

The prefix is stripped and the param is set to the result of the evaluation, the value is interpreted as template and filled with the context:



  my_condition:
    param:
      _map_my_tt_param: my_prefix_[% context.my_context_key %]



If you just need a single context value, the dollar sign is a shortcut:



  my_condition:
    param:
      _map_my_simple_param: $my_context_key



The values are accessible thru the $self->param call using the basename.

    Configuration example

If my_context_key has a value of foo in the context, this configuration:



  my_condition:
    param:
     _map_my_simple_param: $my_context_key
     _map_my_tt_param: my_prefix_[% context.my_context_key %]



Is the same as:



  my_condition:
    param:
      my_simple_param: foo
      my_tt_param: my_prefix_foo



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


perl v5.20.3 OPENXPKI::SERVER::WORKFLOW::CONDITION (3) 2016-04-03

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