LiveCycle Workbench ES Help | |||
| Creating Processes > Implementing Business Logic > Configuring events to control flow in a process > Creating filters and data maps for events | |||
Filters and data maps are used in events for different purposes:
Note: For start points, any data being mapped from an event to a process variable requires that the variable be defined as an input variable.
Event filters and data maps both use expressions of a similar form:
expression1 operation expression2
expression1 is an XPath expression that evaluates to the event template or the process data tree. The operator is an arithmetical operator that you choose. expression2 is an XPath expression that evaluates to a literal value or a value from the event template.expression1 is an XPath expression that evaluates to a variable in the process data tree. The operator is always the equal sign (=). expression2 is an XPath expression that evaluates to the value of a variable in the source data.The exact format of the expressions depends on the type of event and the variables in the event template and process data tree.
In the following example event filter, if the creditscore event data item contains a value greater than 800, the filter resolves to true:
/data/applicants/Applicant/creditscore > 800
In the following example data map, the expression maps a credit score from an application form into a variable for use later in the process.
/process_data/@creditscore = /data/applicants/Applicant/creditscore
An event filter can have multiple filter expressions. If more than one expression is present, all expressions must evaluate to true for an event to be received. If you do not specify any event filter expressions, the filter always resolves as true.
Similarly, a data map can have multiple expressions. Each expression can map a different piece of data as required in the process. If you do not specify any process data map expressions, no data is saved for later use in the process.
For both filters and data maps, you enter the expressions in the Properties dialog box for the event. You can enter the expression in these ways:
to display the XPath Builder dialog box, in which you can then create the expression.
To create an event filter or data map:
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/wb_help/00000590.html