Deduplicate identification will allow you to automate the way you work with lists that contain duplicates. It will provide you with two lists - one that creates the unique values and the other will contain only the duplicates (video tutorial). In the following you will see an example in the form of an scenario.
As a PROCESIO user, I want to have an action that identifies duplicates in a List (the action can work only with simple lists). The action will help me obtain a new list containing only the unique values.
The example requires a process with just the DeDuplicate list action with the following configuration.
Step 1. Create a new process and give it a name.
Step 2. Drag the Deduplicate list action action to the canvas and link it to the other actions.
Step 3. Add the needed variables.
All the output variables will be of type list<object> and with the input <%list%> variable you have the option to provide the default value or add the value when you run the process.
The <%correlations%> output variable will use the system preconfigured correlation data type that you can find in the Type dropdown.
Step 4. Click the Deduplicate list action to access its configurations and click the button Configure.
Full/Complex JSon configuration explanation:
MatchType - pattern matching is made by using several algorithms for pattern matching, the values accepted are:
Step 5. Save and Validate and Run the process.
Step 6. Each time you will run the process you are expected to add the list you wish to check, if you entered a default value you can edit it at this point and click Run.
Step 7. Click Check instance to see the result in the outputted variables.