SequentialWorkflow for wire story files (XML format)

Build 1501 on 14/Nov/2017  This topic last edited on: 1/Sep/2014, at 12:09

The SequentialWorkflow node for importing wire story files in the XML format has a standard structure.

You can copy and paste the below code to your new workflow:

     <SequentialWorkflow

      x:Name="importWires"

      Description="Import text wires"

      DisplayProgress="false"

      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">

 

       <DataReplicator

        x:Name="replicator"

        Data='{wf:ActivityBind importWires, Path=Data}'>

 

         <LoadXml

          x:Name='loadWire'

          Data='{wf:ActivityBind replicator, Path=DataOut}'>

 

           <ImportXml

            x:Name='importXml'

            XmlIn='{wf:ActivityBind loadWire, Path=XmlOut}'>

             <ImportXml.Pars>

               <wf:WorkflowParameterBinding

                ParameterName="srcPath"

                wf:Value="{wf:ActivityBind replicator, Path=DataOut[0].Info.SrcPath}" />              

             </ImportXml.Pars>

           </ImportXml>

         </LoadXml>

 

       </DataReplicator>

 

     </SequentialWorkflow>

Note

Paste the above code between:

<wfres:workFlow

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

and

 <!-- workflow resources - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<opt:XmlImportOptions

   ....

 />

</wfres:workFlow>

See also

SequentialWorkflow for wire story files (plain-text format)

SequentialWorkflow for wire story feeds