For each client-side human service that you create, you
must declare variables to capture the data that steps or activities
in that service flow use.
About this task
You can add the following variables to your client-side
human service:
Table 1. Variables available for addition to
client-side human servicesVariable |
Description |
Private |
Local variables that are used only within the
client-side human service. |
Input |
Variables that represent input data passed to
the current client-side human service. |
Output |
Variables that represent output data that the
current client-side human service returns to its caller. |
Procedure
To add a private, input, or output variable to the client-side
human service, complete the following steps:
- Open your client-side human service in Process Designer.
- In the Variables tab, click the
plus sign next to Input to add a new input
variable.
- In the Details section:
- Type a variable name in the Name field.
Note: Variable names start with a lowercase letter, with subsequent
words capitalized, for example: myVar. Do not use
underscores or spaces in variable names. Variable names are case-sensitive.
- Click Select next to Variable
Type to select the type of the variable from the Select
Library Item list. Custom business objects
that you created are also listed. If you want to create a new business
object, click New and complete the wizard steps.
Note: Client-side
human services do not support business object instances that reference
themselves. For example, the following JavaScript generates an error
when used inside a client-side human service:
tw.local.myVariable= {};
tw.local.myVariable.pointer= tw.local.myVariable;
- Optional: Type a description of the variable
in the Documentation field.
- Optional: If you want your variable to be
an array, select Is List.
- Save the configuration.
- Iterate through steps 2 to 4 to add output and private
variables to the client-side human service.
What to do next
The client-side human service includes variables that can
be passed to activities by mapping input and output variables.