Vous êtes sur la page 1sur 30

Table of Contents

Chapter 1. Introduction................................................................................................................ 4
1.1 Purpose.......................................................................................................................... 4
1.2 Environment................................................................................................................... 4
1.3 Configuration Parameter............................................................................................... 4
Chapter 2. tango g4 plugins....................................................................................................... 5
2.1 svc_tango_g4:init_tango_variables/3..........................................................................5
2.1.1 Overview.............................................................................................................. 5
2.1.2 Parameters............................................................................................................. 5
2.2 svc_tango_g4:init_specific_tango_variable/5.............................................................5
2.2.1 Overview.............................................................................................................. 5
2.2.2 Parameters............................................................................................................. 6
2.3 svc_tango_g4:include_dyn_menu/4............................................................................6
2.3.1 Overview.............................................................................................................. 6
2.3.2 Parameters.......................................................................................................... 7
2.4 svc_tango_g4:load_extra_tango_variables/4.............................................................7
2.4.1 Overview.............................................................................................................. 7
2.4.2 Parameters.......................................................................................................... 8
2.5 svc_tango_g4:check_string_prefix/5...........................................................................8
2.5.1 Overview.............................................................................................................. 8
2.5.2 Parameters.......................................................................................................... 8
2.6 svc_tango_g4:redirect_access/2.................................................................................9
2.6.1 Overview.............................................................................................................. 9
2.6.2 Parameters.......................................................................................................... 9
2.7 svc_tango_g4:set_biller_list/5.................................................................................... 10
2.7.1 Overview............................................................................................................ 10
2.7.2 Parameters........................................................................................................ 10
2.8 svc_tango_g4:language_menu/4..............................................................................10
2.8.1 Overview............................................................................................................ 10
2.8.2 Parameters........................................................................................................ 11
2.9 svc_tango_g4:transf_msisdn/5..................................................................................11
2.9.1 Overview............................................................................................................ 11
2.9.2 Parameters........................................................................................................ 11
2.10 svc_tango_g4:set_variable_by_tag/5.....................................................................12
2.10.1 Overview.......................................................................................................... 12
2.10.2 Parameters...................................................................................................... 12
2.11 svc_tango_g4:incl_multi_lang/2............................................................................... 13
2.11.1 Overview.......................................................................................................... 13
2.11.2 Parameters...................................................................................................... 13
2.12 svc_tango_g4:member_of_list/5.............................................................................. 13
2.12.1 Overview.......................................................................................................... 13
2.12.2 Parameters...................................................................................................... 13
2.13 svc_tango_g4:utf82uni/5.......................................................................................... 14
2.13.1 Overview.......................................................................................................... 14
2.13.2 Parameters...................................................................................................... 14
2.14 svc_tango_g4:check_number_range/5...................................................................14
2.14.1 Overview.......................................................................................................... 14
2.14.2 Parameters...................................................................................................... 15
2.15 svc_tango_g4:incl_options_menu/6........................................................................15
2.15.1 Overview.......................................................................................................... 15
2.15.2 Parameters...................................................................................................... 16
2.16 svc_tango_g4:format_check/7................................................................................. 16
2.16.1 Overview.......................................................................................................... 16
2.16.2 Parameters...................................................................................................... 16
2.17 svc_tango_g4:upper_case_convertor/5..................................................................17
2.17.1 Overview.......................................................................................................... 17
2.17.2 Parameters...................................................................................................... 17
2.18 svc_tango_g4:retrieve_tuple_element_by_key/7..................................................18
2.18.1 Overview.......................................................................................................... 18
2.18.2 Parameters...................................................................................................... 18
2.19 svc_tango_g4:incl_extra_menu/5............................................................................19
2.19.1 Overview.......................................................................................................... 19
2.19.2 Parameters...................................................................................................... 19
2.20 svc_tango_g4:incl_card_list/5.................................................................................. 20
2.20.1 Overview.......................................................................................................... 20
2.20.2 Parameters...................................................................................................... 20
2.21 svc_tango_g4:incl_offer_list/5.................................................................................. 20
2.21.1 Overview.......................................................................................................... 20
2.21.2 Parameters...................................................................................................... 21
2.22 svc_tango_g4:incl_menu/6......................................................................................21
2.22.1 Overview.......................................................................................................... 21
2.22.2 Parameters...................................................................................................... 22
2.23 svc_tango_g4:incl_lists/3.......................................................................................... 22
2.23.1 Overview.......................................................................................................... 22
2.23.2 Parameters...................................................................................................... 22
2.24 svc_tango_g4:init_variables/4.................................................................................. 23
2.24.1 Overview.......................................................................................................... 23
2.24.2 Parameters...................................................................................................... 23
2.25 svc_tango_g4:init_feature_variables/6...................................................................23
2.25.1 Overview.......................................................................................................... 23
2.25.2 Parameters...................................................................................................... 24
2.26 svc_tango_g4:get_currency_by_prefix/8................................................................24
2.26.1 Overview.......................................................................................................... 24
2.26.2 Parameters...................................................................................................... 25
2.27 svc_xml_generic_advanced_routing:request/8.....................................................25
2.27.1 Overview.......................................................................................................... 25
2.27.2 Parameters...................................................................................................... 26
2.28 svc_xml_generic_advanced_routing:rest_request/10...........................................27
2.28.1 Overview.......................................................................................................... 27
2.28.2 Parameters...................................................................................................... 27
Chapter 1. Introduction

1.1 Purpose

Tango g4 plugins provide executable functions and commands which can be invoked
from Cellcube XML documents.

1.2 Environment

Tango g4 plugins are executed within the Cellcube navigation engine.

1.3 Configuration Parameter

The most tango g4 plugins are depending on the values from the configuration parameter
pservices_tango_g4::tango_init_variables, svc_tango_g4: init_tango_variables/3 will load
this parameter in session for other plugins.
The format of pservices_tango_g4::tango_init_variables:
{tango_init_variables,
[{default, [{{“service name”, ”variable name”}, value},
…...]},
{operator, [{{“service name”, “variable name”}, value},
……]}
]}
Chapter 2. tango g4 plugins

2.1 svc_tango_g4:init_tango_variables/3

2.1.1 Overview

This plugin command redirects to the next page when loading the variables is completed.
svc_tango_g4: init_tango_variables/3 is a plugin command: it will will read the
[app_name]::tango_init_variables, and load the variables in session for whole tango
services. The 'default' values will be initialized, then the operator-specific variables will be
loaded if exist.

2.1.2 Parameters

2.1.2.1 “app_name”

This parameter specifies the application name.


Examples:
Pservices_tango_g4

2.1.2.2 “next”

This parameter specifies the next link when loading is completed.

2.2 svc_tango_g4:init_specific_tango_variable/5

2.2.1 Overview

This plugin command redirects to the next page when loading the variables is completed.
svc_tango_g4: init_specific_tango_variable/5 is a plugin command: it will read the
[app_name]::tango_init_variables, and load the target variables in session for whole
tango services. The 'default' values will be initialized, then the operator-specific variables
will be loaded if exist. The variable names is the list of target variables to init.

2.2.2 Parameters

2.2.2.1 “app_name”

This parameter specifies application name


Example:
Pservices_tango_g4

2.2.2.2 “service”

This parameter specifies service name of variables which is configured in


tango_init_variables
Example:
tango

2.2.2.3 “variable_name”

This parameter specifies variable name of variables which is configured in


tango_init_varialbes, separated with ‘,’
Example:
One value: url
Several values: url,routing,bank_name

2.3 svc_tango_g4:include_dyn_menu/4

2.3.1 Overview

This plugin function specifies to show the dynamic menu for Tango of the current session
into a page.
svc_tango_g4:include_dyn_menu/4 is a plugin function: it must be used as the target of a
<include> item in a page. The menu is defined in the pservices_xxx::tango_init_variables,
for example {“tango”,”menus”}. For each menu, it has a name and option list. In each
option, there should be {[name],[switch],[tag],[target]}:
[name] – the name of the option;
[switch] – enable/disable to decide if the link show
[tag] – the tag which related the multi lang content
[target] – the target which option link to

The format of {“tango”,”menus”}:


{{"tango","menus"},
[{customer_menu,
[{"P2P_Money_transfer_link","enable","tango_g4_p2p_money_transfer","money_transf
er_menu"},
{"Top_up_link","enable","tango_g4_top_up","top_up"}]}
]}

2.3.2 Parameters

2.3.2.1 "service_name"

This parameter specifies service name for storing the menu config which is configured in
tango_init_variables, the default value is “tango”.
Example for {“tango”,”menus”}:
tango

2.3.2.2 “variable_name”

This parameter specifies variable name for storing the menu config, which is initilized in
tango_init_variables, the default value is “menus”.
Example for {“tango”,”menus”}:
menus

2.3.2.3 “menu_name”

This parameter specifies the menu list name, consisted with name of menu in public
variables.
Example for {“tango”,”menus”}:
customer_menu
2.4 svc_tango_g4:load_extra_tango_variables/4

2.4.1 Overview

This plugin command redirects to the next page when loading the variables is completed.
svc_tango_g4: load_extra_tango_variables/4 is the plugin command: it will read the
app_name::extra_variables, and put the variables in session for whole tango services.
Only the 'key' related variables will be loaded.
The format of extra_variables:
{extra_variables,[
{"key”,[{{“service name”,”variable name”},value},
……]},
{“tb1”, [{{“service name”,”variable name”},value}]}
}]}

2.4.2 Parameters

2.4.2.1 “key”

This parameter specifies the key to get related parameters list.


Example:
tb1

2.4.2.2 “app_name”

This parameter specifies the application name.


Example:
pservices_tango_g4

2.4.2.3 “next”

This parameter specifies the next link when loading the variables of key is completed.
2.5 svc_tango_g4:check_string_prefix/5

2.5.1 Overview

This plugin command redirects to in or out page depending on the value includes or
excludes the one of prefix list.
svc_tango_g4:check_string_prefix/5 is the plugin command: it will check the prefix of
input string. If its prefix in the list, link to in; if not, link to out.

2.5.2 Parameters

2.5.2.1 “string_value”

This parameter specifies input string, which could be string/dynamic string.


Example:
2211234567890

2.5.2.2 “prefix_list”

This parameter specifies prefix list, separated by ',', which could be string/dynamic string.
Example:
220,221,222,223

2.5.2.3 “in”

This parameter specifies the next page when the string_value includes the one of the
prefix_list.

2.5.2.4 “out”

This parameter specifies the next page when the string_value does not contain any of the
prefix_list.
2.6 svc_tango_g4:redirect_access/2

2.6.1 Overview

svc_tango_g4: redirect_access/2 is the plugin command: it will redirect the service by


ussdcode, following the rule which is configured in variable
tango.access_code_redirections.

2.6.2 Parameters

2.6.2.1 “match”

This parameter specifies how the patterns must match the value of the attribute in order
to trigger the redirection.
- "equal": the value is equal to the pattern
- "equal_num": the value is equal to the pattern (both interpreted as numbers)
- "prefix": the pattern is a prefix of the value.
- "contain": the pattern is nested in the value.
- "length": the length of the value is equal to the pattern (both interpreted as numbers)

2.7 svc_tango_g4:set_biller_list/5

2.7.1 Overview

svc_tango_g4: set_biller_list/5 is the plugin command: it will get the biller list in the
service_name.input_list_name, then set it in a variable and link to the next. The language
related list will be retrieved. Please confirm the session variable tango.default_lang is set
before using this plugin.
Example of tango.billers_list_A:
[{fr,[{"pb1","bp fr text 1","agent_bill_payment"}]},
{en,[{"pb1","bp en text 1","agent_bill_payment"}]}]
2.7.2 Parameters

2.7.2.1 “service_name”

This parameter specifies service name the input_list_name

2.7.2.2 “input_list_name”

This parameter specifies the variable name of the list name

2.7.2.3 “output_list_name”

This parameter specifies the variable name for saving the list

2.7.2.4 “next”

This parameter specifies to go to the next link for successful

2.8 svc_tango_g4:language_menu/4

2.8.1 Overview

svc_tango_g4: language_menu/4 is the plugin function: it will display a dynamic


languages menu according to the session variable tango.languages, the messages in
menu are get in multi-lang files. Then save the select language and link to the next page.
Please confirm the session variable tango.default_lang is set before using this plugin.
Example of tango.languages:
["fr","en","po","mg","ar"]

2.8.2 Parameters

2.8.2.1 “service”

This parameter specifies service name the output_val_name


2.8.2.2 “output_val_name”

This parameter specifies the variable name for saving the selected language

2.8.2.3 “next”

This parameter specifies to go to the next link for successful

2.9 svc_tango_g4:transf_msisdn/5

2.9.1 Overview

svc_tango_g4: transf_msisdn/5 is the plugin command: it will transform old_msisdn to a


new one. The transformation depends on the session variable
tango.ads_on_msisdn_rule which should be set before using this plugin; if transform ok,
the result will be stored in {svc,new_msisdn_name} and link to the next; if fail, the
old_msisdn will be stored.
Example of tango.ads_on_msisdn_rule:
[{"+223",8,"","+223"},……]

2.9.2 Parameters

2.9.2.1 “svc”

This parameter specifies service name of new_msisdn_name

2.9.2.2 “old_msisdn”

This parameter specifies the value of msisdn which to be transformed

2.9.2.3 “new_msisdn_name”

This parameter specifies the variable name which will store the transformation result
2.8.2.4 “next”

This parameter specifies to go to the next link for successful

2.10 svc_tango_g4:set_variable_by_tag/5

2.10.1 Overview

svc_tango_g4: set_variable_by_tag/5 is the plugin command: it will get message content


by tag from multi lang feature, the result will be set into service.valname and link to the
next. Please confirm the session variable tango.default_lang is set before using this
plugin.

2.10.2 Parameters

2.10.2.1 “tag”

This parameter specifies tag of multi lang csv file

2.10.2.2 “service_name”

This parameter specifies the service name of saving the result from tag.

2.10.2.3 “val_name”

This parameter specifies the variable name of saving the result from tag.

2.10.2.4 “next”

This parameter specifies to go to the next link for successful


2.11 svc_tango_g4:incl_multi_lang/2

2.11.1 Overview

svc_tango_g4: incl_multi_lang/2 is the plugin function: it will convert the tag to string in
corresponding language and operator in session. Please confirm the session variable
tango.default_lang is set before using this plugin.

2.11.2 Parameters

2.11.2.1 “tag”

This parameter specifies tag of multi lang csv file

2.12 svc_tango_g4:member_of_list/5

2.12.1 Overview

svc_tango_g4: member_of_list/5 is the plugin command: it will check the input_value is


memeber of check_list. If it is in the list, link to in; if not, link to out.

2.12.2 Parameters

2.12.2.1 “input_value”

This parameter specifies input value.

2.12.2.2 “check_list”

This parameter specifies check list


2.12.2.3 “in”

This parameter specifies input_value is in check_list

2.12.2.4 “out”

This parameter specifies input_value is out of check_list

2.13 svc_tango_g4:utf82uni/5

2.13.1 Overview

svc_tango_g4: utf82uni/5 is the plugin command: it will convert a utf8 string to unicode, the
result will be set into service.valname and link to next page.

2.13.2 Parameters

2.13.2.1 “string_utf8”

This parameter specifies the utf8 string to convert.

2.13.2.2 “service_name”

This parameter specifies the service name for saving result

2.13.2.3 “val_name”

This parameter specifies the variable name for saving result

2.13.2.4 “next”

This parameter specifies to link the next page


2.14 svc_tango_g4:check_number_range/5

2.14.1 Overview

svc_tango_g4: utf82uni/5 is the plugin command: it will check if the input number in a
range. If min =< input_number =< max, link to in page; if not, link to out page; if input is
not number redirect to nok page. If the session value tango.decimal_switch is “on”
number with decimal is supported; otherwise only integer is supported. This plugin only
handle positive number

2.14.2 Parameters

2.14.2.1 “amount_value”

This parameter specifies the input number.

2.14.2.2 “max_value”

This parameter specifies the maximum

2.14.2.3 “min_value”

This parameter specifies the minimum

2.14.2.4 “in”

This parameter specifies to link to in page if the input number is in a range

2.14.2.5 “out”

This parameter specifies to link to out page if the input number is not in a range

2.14.2.6 “not”

This parameter specifies to link to not page if the input number is not number
2.15 svc_tango_g4:incl_options_menu/6

2.15.1 Overview

svc_tango_g4: incl_options_menu/6 is the plugin function: it will display a dynamic menu


based on the specified list stored in the variable. And the input parameter “first_item_id”
should be in the first place. If it is empty or it is not a member of “list_var”, then the option
order is same as that in “list_var”. The list should be in the format "[{ID1, Tag1},{ID2,
Tag2},....]. The "TagX" is used to get the translated message to display in menu. The
related "IDX" and "TagX" will be stored into "Svc.Var" in the format "IDX;TagX" when one
option is chosen and link to the next page. Please confirm the session variable
tango.default_lang is set before using this plugin.

2.15.2 Parameters

2.15.2.1 “list_var”

This parameter specifies the variable saving the list

2.15.2.2 “first_item_id”

This parameter specifies the first item ID

2.15.2.3 “service”

This parameter specifies the service name saving the selected

2.15.2.4 “output_val_name”

This parameter specifies the variable name saving the selected

2.15.2.5 “next”

This parameter specifies to link to next page


2.16 svc_tango_g4:format_check/7

2.16.1 Overview

svc_tango_g4: format_check/7 is the plugin command: it will check the variable with
“format”, if match will link to match page, if not match will link to not_match page,
otherwise will link to error.

2.16.2 Parameters

2.16.2.1 “service_name”

This parameter specifies the service name of input

2.16.2.2 “var_name”

This parameter specifies the variable name of input

2.16.2.3 “format”

This parameter specifies the regular expression for checking rule

2.16.2.4 “match”

This parameter specifies to link to the next if the variable matches the format

2.16.2.5 “not_match”

This parameter specifies to link to not_match page if the variable does not match the format

2.16.2.6 “error”

This parameter specifies to link to error page for any error


2.17 svc_tango_g4:upper_case_convertor/5

2.17.1 Overview

svc_tango_g4: upper_case_convertor/5 is the plugin command: it will upper the input


variable and store the result in service.variable in session and link to next page. Keep the
input in the result if it is already upper characters or numeric.

2.17.2 Parameters

2.17.2.1 “input”

This parameter specifies the input variable

2.17.2.2 “service”

This parameter specifies the service name saving the result

2.17.2.3 “variable”

This parameter specifies the variable name saving the result

2.17.2.4 “next”

This parameter specifies to link to next page

2.18 svc_tango_g4:retrieve_tuple_element_by_key/7

2.18.1 Overview

svc_tango_g4: retrieve_tuple_element_by_key/7 is the plugin command: it will get the tuple


element based on "Key". The given "ListVar" should be in format [{key1,value1},
{key2,value2},{key3,value3},....]. If there is a tuple whose first element is same with
"Key", then the related "value" will be stored in "OutVar", and goto "ok" page, otherwise
will goto "nok" page.

2.18.2 Parameters

2.18.2.1 “key”

This parameter specifies the input key

2.18.2.2 “list_var”

This parameter specifies the variable stores the tuple list

2.18.2.3 “svc_name”

This parameter specifies the service name stores the output

2.18.2.4 “var_name”

This parameter specifies the variable name stores the output

2.18.2.5 “ok”

This parameter specifies to link to ok page if getting the value

2.18.2.6 “nok”

This parameter specifies to link to nok page for any error

2.19 svc_tango_g4:incl_extra_menu/5

2.19.1 Overview

svc_tango_g4: incl_extra_menu/5 is the plugin function: it will display the menu according
to the configuration parameter app_name::extra_variables::extra_options, and save the
selected key in service.variable. The display is depending on the multi lang file, if do not
search the tag in multi lang file the description will be displayed directly.
The format of app_name::extra_variables::extra_options:
[{"description”,"tag","key"},……]

2.19.2 Parameters

2.19.2.1 “app_name”

This parameter specifies the application name.


Example:
Pservices_tango_g4

2.19.2.2 “service”

This parameter specifies the variable stores the tuple list

2.19.2.3 “svc_name”

This parameter specifies the service name stores the selected key

2.19.2.4 “variable”

This parameter specifies the variable name stores the selected key

2.19.2.5 “next”

This parameter specifies to link to next page

2.20 svc_tango_g4:incl_card_list/5

2.20.1 Overview

svc_tango_g4: incl_card_list/5 is the plugin function: it will generate a list menu based on
the "List" parameter. The chosen will be stored into "service. var".
2.20.2 Parameters

2.20.2.1 “list”

This parameter specifies the variable store the list

2.20.2.2 “service”

This parameter specifies the service name stores the selected

2.20.2.3 “var”

This parameter specifies the variable name stores the selected

2.20.2.4 “next”

This parameter specifies to link to next page

2.21 svc_tango_g4:incl_offer_list/5

2.21.1 Overview

svc_tango_g4: incl_offer_list/5 is the plugin function: it will generate an offer list menu
based on the offer list stored in the variable.
Each offer is like "{"offer_code", "offer_label", [{"option_code", "option_label"},...],
[{"duration_code", "duration_label",...}]}.
The chosen offer's offer_code will be stored into "service.offer_code".
The chosen offer's offer_label will be stored into "service.offer_label".
The chosen offer's option number will be stored into "service.option_num".
The chosen offer's option codes and labels will be stored into "service.option_list" with
format "[{option_code1, option_label1}, {option_code2, option_label2},...]".
The chosen offer's duration number will be stored into "service.duration_num".
The chosen offer's duration codes and labels will be stored into "service.duration_list"
with format "[{duration_code1, duration_label1}, {duration_code2, duration_label2},...]" if
duration number is larger than "1".
The chosen offer's duration code and label will be stored into "service.duration_list" with
format "duration_code;;duration_label" if duration number is "1"

2.21.2 Parameters

2.21.2.1 “offers_list”

This parameter specifies the variable store the offer list

2.21.2.2 “service”

This parameter specifies the service name stores the selected

2.21.2.3 “next”

This parameter specifies to link to next page

2.22 svc_tango_g4:incl_menu/6

2.22.1 Overview

svc_tango_g4: incl_menu/6 is the plugin function: it will display a dynamic menu based on
the specified list stored in the session. The list should be in the format "[{ID1, Label1},
{ID2, Label2},....]". LabelX is used to display and selected ID and Label will be stored into
service.output_code and service.output_label, and then link to the next page.

2.22.2 Parameters

2.22.2.1 “list_var”

This parameter specifies the variable store the list

2.22.2.2 “service”

This parameter specifies the service name stores the selected


2.22.2.3 “output_code”

This parameter specifies the variable name stores the selected code

2.22.2.4 “output_label”

This parameter specifies the variable name stores the selected label

2.22.2.5 “next”

This parameter specifies to link to next page

2.23 svc_tango_g4:incl_lists/3

2.23.1 Overview

svc_tango_g4: incl_lists/3 is the plugin function: it will display the elements of a list one by
one except an empty element. If the variable does not exist, an error page is sent
(pserver,bug_url)

2.23.2 Parameters

2.23.2.1 “service”

This parameter specifies the service name of input list

2.23.2.2 “name”

This parameter specifies the variable name of input list


2.24 svc_tango_g4:init_variables/4

2.24.1 Overview

svc_tango_g4: init_variables/4 is the plugin command: it will set "" to


service_name.var_name in session, var_name is fetched from var_name_list one by one.
Then go to next page

2.24.2 Parameters

2.24.2.1 “service_name”

This parameter specifies the service name of input list

2.24.2.3 “var_name_list”

This parameter specifies the variable name of name list which is separated by “,”
Example:
name1,name2,name3

2.25 svc_tango_g4:init_feature_variables/6

2.25.1 Overview

svc_tango_g4: init_feature_variables/6 is the plugin command: it will read the [app_name]::


[feature_name]::[init_var_name], and put the variables in session for whole feature
services. The 'default' values will be initialized, then the operator-specific variables will be
loaded if exist, goes to next page. If init_var_name not found will go to error page.
The structure of configuration parameter is the same as pservices_tango_g4:
tango_init_varialbes.
Example:
{feature_name,[
{init_var_name,[
{default,[{{“service”,”variable”},value},
…..]},
{omali,……}]}]}

2.25.2 Parameters

2.25.2.1 “app_name”

This parameter specifies the application name

2.25.2.2 “feature_name”

This parameter specifies the feature variables name

2.25.2.3 “init_var_name”

This parameter specifies init variables name

2.25.2.4 “next”

This parameter specifies to link to next page

2.25.2.5 “error”

This parameter specifies to link to error page for any error

2.26 svc_tango_g4:get_currency_by_prefix/8

2.26.1 Overview

svc_tango_g4: get_currency_by_prefix/8 is the plugin command: it will search the prefix of


msisdn in the list service.mapping as format [{MsisdnPrefix1, CurrencyValue1},
{MsisdnPrefix2, CurrencyValue2}, ...], and save the match currencyvalue in
service.currency and then link to ok page, it not found will link to nok page, otherwise link
to error.
2.26.2 Parameters

2.26.2.1 “msisdn”

This parameter specifies the variable of the input msisdn

2.26.2.2 “service”

This parameter specifies the service name of mapping and matched currency

2.26.2.3 “mapping”

This parameter specifies the variable name of the list including msisdn prefix and currency

2.26.2.4 “ok”

This parameter specifies to link to ok page if searched

2.26.2.5 “nok”

This parameter specifies to link to nok page if no item found

2.26.2.6 “error”

This parameter specifies to link to error page for any error

2.27 svc_xml_generic_advanced_routing:request/8

2.27.1 Overview

svc_xml_generic_advanced_routing: request/8 is the plugin command: it will send and


decode XML over HTTP protocol based on template. The request Name is linked to one
XML template and a mapping definition. The variables needed for the request have to be
set before using this plugin. Once the request is sent, resulting variables are stored in the
session based on service name argument and the label defined in mapping file. If an
error is detected, the error label (see .error file) is stored in the session by using the
variable name "error_code” the service name is defined in the plugin argument. The
plugin will CDR the result if the below variables are configured:
-- pservices_tango_g4::cdr_switch: on/off
-- pservices_tango_g4::cdr_routing: the routing of CDR
-- pservices_tango_g4::cdr_unlisted_service: the service will not cdr in this list, for
example, [a.xml,b.xml], a and b service will not be CDR however you use this plugin and
cdr_switch is on.

2.27.2 Parameters

2.27.2.1 “request_name”

This parameter specifies the current request in xml_generic folder

2.27.2.2 “svc_name”

This parameter specifies the service name

2.27.2.3 “url”

This parameter specifies URI in the HTTP POST command

2.27.2.4 “routing”

This parameter specifies the appropriate HTTP route which matches with the HTTP.

2.27.2.5 “timeout”

This parameter specifies the request timeout in milliseconds.

2.27.2.6 “pattern”

This parameter specifies the redirections associated with each value:


-- ok: request sent and decoding success
-- error: An error occurred.
2.28

svc_xml_generic_advanced_routing:rest_request/10

2.28.1 Overview

svc_xml_generic_advanced_routing: rest_request/10 is the plugin command: it will send


REST http request to the specific URL and parse result from response. If http request
completes, and the result is parsed successfully, the session will redirect to the ok page.
If http request fails, redirect to the nok page.

2.28.2 Parameters

2.28.2.1“method”

This parameter specifies the http request method:


-- post
-- get
-- put
-- delete

2.28.2.2 “url”

This parameter specifies the URL to be requested.

2.28.2.3 “header”

This parameter specifies the Herader of request. It should be format as Tag1:Value1$


{new_line}Tag2:Value2...

2.28.2.4 “body”

This parameter specifies the Body of request.


2.28.2.5 “routing”

This parameter specifies the appropriate HTTP route which matches with the HTTP.

2.28.2.6 “timeout”

This parameter specifies the request timeout in milliseconds.

2.28.2.7 “svc_name”

This parameter specifies the service name

2.28.2.8 “mapping_name”

This parameter specifies mapping file used to decode the xml response

2.28.2.9 “pattern”

This parameter specifies the redirections associated with each value:


-- ok: request sent and decoding success
-- timeout : A timeout occured based on the above Timeout value
-- error: An error occurred

Vous aimerez peut-être aussi