iRobo.Activity.Compare Text
Compare two blocks of plain text and efficiently return a list of differences.
Properties
Input
- Text 1 - Original Text. (Mandatory)
- Text 2 - Derivative Text. (Mandatory)
Misc
- DisplayName - Activity header name.
Output
- Result - List<KeyValue<string,string>> of differences is computed which describe the transformation of text1 into text2.
Steps of Using Compare Text
- Open iRobo Studio, and then open a new Workflow.
- Drag Compare Text Format Activity to the Sequence.
- Enter the original text in Text 1 field in Property Panel.
- Enter the derivative text in Text 2 field from the Property Panel.
- Create List<KeyValue<string,string>> from Variable Table , then add the value in Result field in Property Panel.
For example: (Comparison)
- Drag MessageBox Activity to the Sequence and add the Output Variable in Message field.
Note: For Example:(Comparison.item(*)). where the item(0), specify if it's an insertion. if the item(1), specifies a deletion and if item(2) defines the equality. First element describes if it's (Insertion,Deletion,Equality). Second element specifies the affected text. Example: Input: Text1: Hello World. Text2 Goodbye World. Output: List<KeyValuePair<string, string>> of differences is computed which describe the transformation of text1 into text2. The first element specifies if it is an insertion (1), a deletion (-1) or an equality (0). The second element specifies the affected text. Therefore, the result for the above Text1 and Text2 is: [(DELETE, Hello), (INSERT, Goodbye), (EQUAL, World.)] |
- Click Save button from iRobo Studio Menu to save Workflow.
- Click Play button to start the automated process.
Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation