Workflow and ServiceDesk Community

 View Only

Item Is In Collection 

Jun 13, 2012 09:45 AM

 

Component definition

This component determines whether an input variable item exists within a specified array/collection.

Component icon

index_preferences.png

Definition of component input value or values

Input values
Input value name Input value data type Example format
Data Type (Variable) Text
Array Variable Name (Array Variable of the Data Type specified above) TestArray
Item (Single Variable of the Data Type specified above) TestItem

 

Definition of component output value or values

This component does not have a variable output.  It does have two output paths (True and False) which is determined by the outcome of the evaluation.

Connection information

This component does not directly connect to any external data or systems.

Component settings

There are no additional non-standard configuration options available for this component.  

It's important to note that when specifying the "Array" input, that the array can be a part of the complex array.  For example, if you have an array of type Key Value Pair named "TestKVPArray", the component can be configured like this:

2015-01-15_9-49-28.png

But oftentimes the entire variable isn't in question.  If a single value is being tested for inclusion in an array, false negatives can be minimized by configuring the component like this:

2015-01-15_9-49-44.png

Here the component is looking specifically at whether a string input matches any member of an array, but is only evaluating a single text part of the complex data type.

 

Use case

Adding a Contact to a Ticket

This component may be used to determine whether a contact has already been added to an array, preventing that contact from being duplicated in the array.

[Example 2]

[Describe the use case. Insert screen shots or package files. Insert a description of how the settings are configured. Insert additional information about the use case that you are submitting.]

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.