ExaleadTags Activity

Build 1501 on 14/Nov/2017  This topic last edited on: 25/Aug/2014, at 13:05

The sequential activity 'ExaleadTags' uses Exalead to extract tags (locations, people name, languages etc.) from indexed objects.

Here is a sample workflow that extract tags and saves them in a file:

  <wfres:workFlow

    xmlns:wfres="http://www.teradp.com/schemas/GN4/1/WFRes.xsd">

 

    <SequentialWorkflow

      x:Name="mainWorkflow"

      xmlns="http://www.teradp.com/schemas/GN4/1/Workflow/Activity"

      xmlns:gn4wf="http://www.teradp.com/schemas/GN4/1/Workflow"

      xmlns:common="http://www.teradp.com/schemas/GN4/1/Common"

      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

      xmlns:wf="http://schemas.microsoft.com/winfx/2006/xaml/workflow"

      xmlns:sys="clr-namespace:System;assembly=mscorlib"

      xmlns:coll="clr-namespace:System.Collections;assembly=mscorlib"

      xmlns:fn="http://www.teradp.com/schemas/GN4/1/Xslt">

 

      <ExaleadTags

        x:Name="extractTags"

        ObjectIds="{wf:ActivityBind mainWorkflow, Path=ObjectIds}"

        Categories='{wf:ActivityBind mainWorkflow, Path=ParValue["categories"]}'/>

  

      <SaveXml x:Name="saveTagsXml" XmlIn="{wf:ActivityBind extractTags, Path=XmlOut}">

        <Save x:Name="saveTags" Data="{wf:ActivityBind saveTagsXml, Path=DataOut}" To="c:\temp\tags.xml" Mode="Overwrite">

        </Save>

      </SaveXml>

    </SequentialWorkflow>

 

</wf  res:workFlow>

Call it like this:

  ../do.ashx?cmd=wf&name=ExaleadTags&pars=categories:Location,People&ids=XXXX

where XXX is the id of the object to extract the tags from.