This topic describes how to create a field in the decision engine.
Background
What is a field?
-
A field represents data from a business scenario that can be used in risk control policies and is an input parameter to the decision engine. For example, account registration and login scenarios typically use phone numbers, IP addresses, and device information, while transaction and payment scenarios use order, payment, and shipping information.
-
Fields must be associated with an event when you create an event to be used in a policy. Fields can also be used in the Variable Center to derive additional variables for risk control policies, such as custom variables and cumulative variables.
Procedure
-
Log on to the Risk Detection console.
-
In the left-side navigation pane, choose Decision Engine > Field Management.
-
Check if a built-in (system default) field meets your needs. If so, you can directly associate it with an event in Event Management.
-
If no existing field meets your needs, you can create a custom field. Click New Field and configure the following parameters:
-
Field Name: The system automatically adds the
DEprefix to prevent conflicts with system default fields, so you do not need to enter it. Use a name that reflects the field's business purpose, such asDEorderId. -
Display Name: The field's name as displayed in the decision engine console. For example,
Order ID. -
Field Type: Includes string, integer, float, boolean, date, and enum.
-
Field Category: Includes business field and device field.
-
Field Description: An optional description for the field. You can fill in the Field Description, for example, "The unique ID of an order in an e-commerce transaction". The Field Source defaults to "custom field". When finished, click Save.
-
Click Save. The field is created.
-
You can now associate the field with an event when you create an event, or use it in the Variable Center to derive new variables.