Defining Tokens
To define tokens, use the Token (RC_TOKEN) component.
This section lists a prerequisite and discusses how to create tokens.
Note: Token variables can be referenced by question and script definitions.
Page Name |
Definition Name |
Usage |
---|---|---|
RC_TOKEN_MAIN |
Define variables that can be inserted into script questions. |
Before you define a token, you must define the mechanism for setting the token value. You can:
Define a component interface in PeopleTools.
Define a PeopleCode function on the PeopleCode Function page.
Define a variable on the Variable page.
Use the Token page (RC_TOKEN_MAIN) to define variables that can be inserted into script questions.
Navigation
Image: Token page
This example illustrates the fields and controls on the Token page.
![Token page](img/i-42c12a96n-76af.png)
Field or Control |
Definition |
---|---|
Component Interface |
Select to use a component interface to set the token value. Enter the name of the component interface and method that set the token value. |
PeopleCode Function |
Select to use a PeopleCode function to set the token value. Enter the name of the function that sets the token value. |
Variable |
Select to use a script variable as the token value. Enter the name of the variable that sets the token value. |