Workflow Soluiton

 View Only
  • 1.  Running Tasks with Workflow

    Posted Oct 10, 2014 06:09 PM

    I would like to run various scripts/tasks on a client computer via workflow. I went through this video, https://www-secure.symantec.com/connect/videos/creating-and-executing-smp-tasks-workflow, but it does not explain how to target a specific computer name to run the task against.  The example in the video show's him creating a text file directly on the NS, but how do I target other computers?



  • 2.  RE: Running Tasks with Workflow

    Posted Oct 13, 2014 07:59 AM

    (author of video here)

    To run SMP tasks, you have to have a collection/filter that includes the machine you want to run a task against. SMP tasks require several arguments, including the guid of the task you're running and the guid of the collection/filter to run the task against. Once your machine is in this collection/filter, use the Guid of this collection as the Collection/Filter argument for the SMP task component. (in my video I used a collection/filter that solely contained the SMP for purposes of being "easy")

    Outside of the SMP, you can use the Execute Process/Execute Process and Wait components - it only lets you run tasks against the local machine.

    There's another component that lets you try and run tasks against remote machines outside of SMP as well, I believe it's in a Logicbase.Components.System(something) lib, not loaded by default, and it's called Run Command (or something similar - sorry this is so vague, do not have WF up in front of me)



  • 3.  RE: Running Tasks with Workflow

    Posted Oct 17, 2014 02:06 PM

    I am trying to manually use taskmanagementservice.asmx to test my input paramters before i build a workflow.  I am a bit confused.  What exactly needs to be entered in these fields?  This is the execute task method.

     

    taskGuid:
    executionName:
    inputParameters:


  • 4.  RE: Running Tasks with Workflow

    Posted Oct 17, 2014 02:58 PM

    Taskguid is the guid of the task you want to run. In my prev post I create a task on the fly and import it into the SMP, so I "control" this GUID, technically. If you manually create one on the SMP, you can get the guid by checking the task properties on the SMP.

    ExecutionName is just a name, any name, you use to call the "execution" of the task

    Input parameters is the input to the task, in XML format. In my video the input XML looks like this:

    <inputParameters>
     <parameter>
    <name>@AssignedResources</name>
    <value>CollectionToRunTaskAgainst</value>
    </parameter>
    <parameter> 
    <name>@CompRequirements</name>
     <value> 
    <minWaitTime>1 minutes</minWaitTime> 
    <maxWaitTime>1 minutes</maxWaitTime>
    <minCompletion>1 %</minCompletion> 
    </value>
     </parameter>
     </inputParameters>

    Where it says CollectionToRunTaskAgainst, you have to use a Merge Text component to merge in collection/filter guid you want to run the task on.

    Note theres a doc that goes with the vid that goes into a little more detail here: https://www-secure.symantec.com/connect/articles/creatingimportingexecuting-ns-tasks-workflow (I fly through the vid, but it's basically walking through this doc)