Workflow and ServiceDesk Community

 View Only
Expand all | Collapse all

How to run a altiris job using workflow

  • 1.  How to run a altiris job using workflow

    Posted May 28, 2014 08:59 AM

    Hi,

    I'm tryin to run a job from workflow with help of "Run Job on Computer" component, but it needs some job id and computer id. So how can I find a job ID for that job or how do i configure that.

    Kindly help me regarding the same.

    Thanks.



  • 2.  RE: How to run a altiris job using workflow

    Posted May 28, 2014 11:00 AM

    The Run Job on Computer component is a DS (Deployment Server) component I believe. (You can verify this by checking the namespace of the component in the Component properties... if it resembles Symantec.Components.DS, it is a DS comp)

    The job ID/comp ID can both be found in Deployment server (properties of jobs). However, I believe the DS comps were only written against DS 6.9 or lower.



  • 3.  RE: How to run a altiris job using workflow

    Posted May 28, 2014 11:20 AM

    @reecado do you think the answer lies in this video you posted.

    Creating and Executing SMP Tasks with Workflow - https://www-secure.symantec.com/connect/videos/creating-and-executing-smp-tasks-workflow



  • 4.  RE: How to run a altiris job using workflow

    Posted May 28, 2014 11:27 AM

    I did that video... yes, that video would be a very good way of eecuting an SMP task via WF... however, it doesn't use the Run Job on Computer component.



  • 5.  RE: How to run a altiris job using workflow

    Posted May 28, 2014 11:33 AM

    Do the DS 6.9 component work anymore? I have not used them in like 4 years and I thought the version of the ASDK they use require a 1.0 or 2.0 version of .Net. 



  • 6.  RE: How to run a altiris job using workflow

    Broadcom Employee
    Posted May 28, 2014 11:42 AM

    The DS 6.9 components are still functional against a properly configured DS 6.9 server.  



  • 7.  RE: How to run a altiris job using workflow

    Posted Jun 04, 2014 05:16 AM

    Hi,

     I'm getting the following error on execute task component:

    ThisFormData = TEST.csv

    Component Executed: Exception Component (LogicBase.Components.Default.Process.ExceptionComponent), exit path is ''

    Data:

    AllFiles = array

    [0] TEST.csv

    [1] Test1.csv

    CollectionToRunTask = "ecdbdb8d-7386-482e-96a6-ae5e5fb94af0"

    ErrorMessage = "Server was unable to process request. ---> Could not find [Task] where [TaskID] Equal [{09bf0f07-6156-4f5e-8f88-6d61be31d278} ]"

    LastComponent = "Get Task By ID"

    ModelID = "79953220-c9dd-11e3-a3ac-000c29d69682"

    SelectedFile = "TEST.csv"

    SplittedText = array

    [0] 1

    [1] CRISILDSK3808

    [2] Adobe Reader

    [3] 5/27/2014

    StackTrace = " at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    at LogicBase.Core.Ensemble.WorkflowTasks.WorkflowTasks.GetTaskByID(String sessionID, String taskID)

    at Ensemble.WorkflowTasks.GetTaskByID.Run(IData modelData)

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

    ThisFormData = TEST.csv

    Log Error: current component Exception Component(ExceptionComponent)

    Log Error: last component Report Critical Error(ReportCriticalError)

    Log Error: resulting exception from execution

    System.Exception: exception component created: ---> LogicBase.Framework.BusinessRuleException: The critical error failed execution on component Get Task By ID : Server was unable to process request. ---> Could not find [Task] where [TaskID] Equal [{09bf0f07-6156-4f5e-8f88-6d61be31d278} ] : at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    at LogicBase.Core.Ensemble.WorkflowTasks.WorkflowTasks.GetTaskByID(String sessionID, String taskID)

    at Ensemble.WorkflowTasks.GetTaskByID.Run(IData modelData)

    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)

    --- End of inner exception stack trace ---

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

    Log Error:



  • 8.  RE: How to run a altiris job using workflow

    Posted Jun 04, 2014 05:19 AM

    I'm facing error in execute task component. The error is :

    ThisFormData = TEST.csv

    Component Executed: Exception Component (LogicBase.Components.Default.Process.ExceptionComponent), exit path is ''

    Data:

    AllFiles = array

    [0] TEST.csv

    [1] Test1.csv

    CollectionToRunTask = "ecdbdb8d-7386-482e-96a6-ae5e5fb94af0"

    ErrorMessage = "Server was unable to process request. ---> Could not find [Task] where [TaskID] Equal [{09bf0f07-6156-4f5e-8f88-6d61be31d278} ]"

    LastComponent = "Get Task By ID"

    ModelID = "79953220-c9dd-11e3-a3ac-000c29d69682"

    SelectedFile = "TEST.csv"

    SplittedText = array

    [0] 1

    [1] CRISILDSK3808

    [2] Adobe Reader

    [3] 5/27/2014

    StackTrace = " at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    at LogicBase.Core.Ensemble.WorkflowTasks.WorkflowTasks.GetTaskByID(String sessionID, String taskID)

    at Ensemble.WorkflowTasks.GetTaskByID.Run(IData modelData)

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

    ThisFormData = TEST.csv

    Log Error: current component Exception Component(ExceptionComponent)

    Log Error: last component Report Critical Error(ReportCriticalError)

    Log Error: resulting exception from execution

    System.Exception: exception component created: ---> LogicBase.Framework.BusinessRuleException: The critical error failed execution on component Get Task By ID : Server was unable to process request. ---> Could not find [Task] where [TaskID] Equal [{09bf0f07-6156-4f5e-8f88-6d61be31d278} ] : at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    at LogicBase.Core.Ensemble.WorkflowTasks.WorkflowTasks.GetTaskByID(String sessionID, String taskID)

    at Ensemble.WorkflowTasks.GetTaskByID.Run(IData modelData)

    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)

    --- End of inner exception stack trace ---

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

    Log Error:



  • 9.  RE: How to run a altiris job using workflow

    Posted Jun 04, 2014 06:32 AM

    I think I see the issue. You're using, I believe, the wrong ExecuteTask component. The component you're using up above I believe is a canned WF component that runs against a PM task. I believe the ExecuteTask comp I used was a generated web service component against TaskManagement.asmx on an SMP (I briefly mention this in my video/post related to the video)



  • 10.  RE: How to run a altiris job using workflow

    Posted Jun 05, 2014 01:06 AM

    reecardo,

    what about System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) this error. How can I resolve this issue?



  • 11.  RE: How to run a altiris job using workflow

    Posted Jun 05, 2014 07:46 AM

    The Invoke just means a web service has been called. This leads me to believe you're using the wrong component:

    Ensemble.WorkflowTasks.GetTaskByID.Run(IData modelData)

    That's a ProcessManager (PM) component. It's going to run against ProcessManager, not the SMP. It's pretty evident (Ensemble in the namespace)

    The ExecuteTask comp I use in my example video is a generated Web Service component against the ExecuteTask method in SMP's TaskManagement.asmx. It's part pf the Administrator SDK for the SMP. If you use the web service generator, you can duplicate this component. You do this by creating an Integration project, and picking a generator of type Web Service generator.