Workflow Soluiton

 View Only
  • 1.  DS 7.1 and Workflow

    Posted Jan 31, 2013 10:26 AM

    I try to use the Deployment Components in a Workflow. For a test, created the following Workflow:

    When I start the Debuger, the following error occurs:

    Component Executed: Start (LogicBase.Components.Default.Process.StartComponent), exit path is ''

    Data:

    Component Executed: Create DS Connection Profile (Symantec.Components.DS.Components.CreateDSCredentialsComponent), exit path is ''

    Data:

    Exception: 'System.NullReferenceException' (Object reference not set to an instance of an object.) occured at at Symantec.Workflow.Core.DS.DeploymentServerConnectionProfile.get_ComputerService()

    at Symantec.Workflow.Core.DS.DeploymentServerFacade.ListComputers(String searchPhrase)

    at Symantec.Components.DS.Components.ListComputersComponent.DoRun(IData data)

    at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)

    at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp)

     

    Whats wrong? 

     



  • 2.  RE: DS 7.1 and Workflow

    Posted Jan 31, 2013 11:13 AM

    The out-of-the-box DS components only function on DS 6.9 and below. (back when DS was a "standalone" product and not incorporated into the SMP as a solution)

    To use DS 7+, you basically have to make use of the various DS tasks from the SMP by rerunning the Tasks generator to pick them up and make components for them.



  • 3.  RE: DS 7.1 and Workflow

    Posted Feb 08, 2013 05:58 PM

    I am not sure if that is still the case now. According to the SDK Help file thats on the NS for 7.1 SP2, there is an Altiris.ASDK.DeploymentSolution.COM object now. Not sure how you use it though.



  • 4.  RE: DS 7.1 and Workflow

    Posted Feb 11, 2013 08:19 AM

    In addition to the task types introduced by the DS solution, the ASDK (non task) generator will attempt to hit this web service if it exists:

    <sourcedef>
            <url>/altiris/asdk.deploymentsolution/dstaskmanagementservice.asmx</url>
            <category>Altiris 7.Web Services.DSTaskManagement</category>
        </sourcedef>

    This might be the web service mentioned in the post above. You can rerun the generator to pick up new component wrappers from this service.

    If you don't want to rerun the generator, you can always use the web service generator to hit any ASDK DS web service introduced.



  • 5.  RE: DS 7.1 and Workflow

    Posted Feb 22, 2013 03:49 PM

    Correct Reecardo,

    I just compiled my web services component with the new ASDK for DS. It look like you just pass it an XML file to create or use DS task. For instance, the big one I have been waiting for is Add Predefined Computers.

    <DeploymentItem>
      <ItemType>Resources</ItemType>
      <ItemName>PredefinedComputers</ItemName>
      <ItemAction>Add</ItemAction>
      <Item>
        <Computers>
          <Computer>DBComputer1,00-C0-26-82-E2-9E,6X18FHGZP21P,,43E68390-EC80-11DA-BCC7-128EBB9DF008,,,Altiris,,1,,,,,,,,,computer1h,altiris.com1,,,,,,,,,,,,,,,,,,,,,,,,,,00-C0-26-82-E2-91,0,172.25.10.180,255.255.0.0,172.32.0.4,172.32.0.1;172.32.0.7,172.32.0.4,altiris.com2,00-C0-26-82-E2-92,1,,,,,,altiris.com3,00-C0-26-82-E2-93,0,1.1.1.1;2.2.2.2,255.255.255.255;255.255.255.0,1.1.1.2;2.2.2.1,3.3.3.3;4.4.4.4,5.5.5.5;6.6.6.6,altiris.com4,00-C0-26-82-E2-94,1,,,,,,altiris.com5,00-C0-26-82-E2-95,0,1.1.1.2,2.2.2.2,3.3.3.3,4.4.4.4,5.5.5.5,altiris.com6,00-C0-26-82-E2-96,1,,,,,,altiris.com7,00-C0-26-82-E2-97,0,5.5.5.5,4.4.4.4,3.3.3.3,2.2.2.2,1.1.1.1,altiris.com8</Computer>
        </Computers>
      </Item>
    </DeploymentItem>

     



  • 6.  RE: DS 7.1 and Workflow

    Posted May 07, 2013 12:07 PM

    I'm not sure I'm following what you did to get to this. How did you determine what the xml should look like? Also, can you provide some detail on the steps for compiling the web service component with the DS ASDK?