It's possible the values returned from the job ticket may need to be manipulated in order to get the result desired for the preflight profile or action list. PitStop Server provides several standard manipulations to help you to quickly extract the information needed. Following is an explanation of the Manipulations available.
| Manipulation | Description | Example |
|---|---|---|
| Trim leading whitespace | Removes any extra spaces at the beginning of a result string | Changes “ sample” to “sample” |
| Trim trailing whitespace | Removes any extra spaces at the end of a result string | Changes “sample ” to “sample” |
| Merge adjacent whitespace | Removes any spaces between result phrases | Changes “Sample Text 2” to “SampleText2” |
| Case: Unchanged | Leaves the result unchanged | No changes to result |
| Case: Convert to lowercase | Converts all text to lowercase | Changes “Sample Text” to “sample text” |
| Case: Convert to uppercase | Converts all text to uppercase | Changes “Sample Text” to “SAMPLE TEXT” |
| After | Captures all data after a character or phrase | The complete result is “Sample Text 1234”. You need “1234” for your value. Entering “Text” in “After” will return “1234” as the result |
| Before | Captures all data before a character or phrase | The complete result is “Sample Text 1234”. You need “Sample” for your value. Entering “Text” in “Before” will return “Sample” as the result |
| Segment | Allows you to capture a specific segment of text from a result. This manipulation is expressed numerically based on the character count for the start and the end of the segment | The complete result is “Sample Text 1234”. You need “Text” for your value. The “T” in “Text” is 8 characters in and the ending “t” is 11 characters in. Entering “8- 11” for segment will return “Text” for the result |
| Search | Allows you to use “Regular Expressions” (RegExp) to manipulate your results. See the section on “Regular Expressions” for more information on creating and using regular expressions | The complete result is “Sample Text 4321” You need only the first two numbers of the result. For this, the regular expression would be: (1-9)[1,2]. This expression asks for only numbers (1-9) and only the first two positions (1,2). The result from this example would be “43” |