Workflow and ServiceDesk Community

 View Only

Workflow - Tag Finder 

Jun 10, 2015 03:04 PM

In this article I will show you how to use the 'Extract Text By Pattern' component in the Forms (Web).png Forms (Web) Project Type

 

If you have a need to find a value within string you can use the following:

Extract Text By Pattern.png

Extract Text By Pattern
Class: LogicBase.Components.Default.Process.RegEx.ExtractTextByPattern
Library: LogicBase.Components.Default.dll
Publisher: Symantec Corporation

https://www-secure.symantec.com/connect/articles/extract-text-pattern

 

Example:

{{##_Retry_Tag:25}}
 
BEGIN TAG END
{{##_Retry_Tag: 25 }}

Tag Finder Workflow.png

This will find the first occurrence.
 
Tag Finder Web (1).png Tag Finder Web (2).png
 
I created a variable for the Start and End Tag and passed it the data I needed to search in.
 
Extract Text By Pattern - Configuration (1).png
 
If you know the length of the tag, say it’s a GUID you could untick ‘Use Pattern For End’ and hardcode the length. This is similar to how the Email Monitor searches for {IID=} updates in Tickets.
 
Extract Text By Pattern - Configuration (2).png
 
If it doesn’t find a match it continues.
You could then use a ‘Get Number from String’ to check it is a Number or do a Length check to be sure.
 

Forum

 

Protirus.png

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.