Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

DS 7.1 and Workflow

Created: 31 Jan 2013 | 5 comments
Marco Nigg's picture

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? 

 

Comments 5 CommentsJump to latest comment

reecardo's picture

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.

noodleNT's picture

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.

reecardo's picture

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.

noodleNT's picture

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>

 

michael.george's picture

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?

If a post solves your issue, please mark it as a solution. It makes these forums better for everyone.