Workflow Soluiton

 View Only
  • 1.  Executing Local Files from Published Workflow

    Posted Aug 06, 2010 03:57 PM
    Does anyone know how I would call a script or batch file on the local computer when running a published Workflow? Ideally what I'd like to do is use the "Execute Process (Run)" component to start a process on the user's computer. This works great while in debug mode, but when the Workflow is published, it is obviously going to run the process on the server instead of on the connecting PC. Any ideas how to get around this?


  • 2.  RE: Executing Local Files from Published Workflow

    Posted Aug 07, 2010 02:51 PM
    Steve,

    This can't be done natively by WF or any other Web Scripting as it would pose a real security problem! Image a website that can execute any code it wants on your computer! in WF, the execute and run will only run files on the SERVER, not the client.

    That being said, there are 2 ways I can see to get around this:

    The first is to use an activeX like LaunchInIE  (http://www.whirlywiryweb.com/q/launchinie.asp). This activeX allows you to call a file or a script on the Client computer, however for security reasons, you need to configure a registry entry on each machine .This registry lists the URL that is "allowed" to call the activeX. Without this, anyone could execute any code on your computer.


    The second way would be to create the batch file on the server with whatever customization you need, write the file to a location in the server, then present a hyperlink to the user that they can use to Download and Run the app. 

    With both these methods, there is no way for you to monitor the progress or results of the file (unless you had it perform some other action like send an email or something like that) on the Workflow Server.

    We use LaunchIE in conjunction with the help desk to launch ADUC and other items from within the Helpdesk console  - this is just as a convenience for our workers...

    rob


  • 3.  RE: Executing Local Files from Published Workflow

    Posted Aug 09, 2010 11:33 AM

    Thanks for the tip!  Launching tools from within the Helpdesk is exactly what I wanted to do.  I will check out LaunchInIE.  Thanks again!



  • 4.  RE: Executing Local Files from Published Workflow

    Posted Aug 09, 2010 11:35 AM
    Just FYI to anyone interested, the other option I am considering is using a batch file on the DS and pushing the job to the user's PC from the Workflow.  I've just been having a bit of trouble getting Workflow and DS to play nicely, but I'll update this when I figure it out.


  • 5.  RE: Executing Local Files from Published Workflow

    Posted Aug 09, 2010 06:36 PM

    If you're looking at DS... and havent't discovered them yet...

    There are DS comps that come with Workflow (Symantec.Components.DS). The Deployment Server comps only work with DS 6.9. There's an effort under way to get a set of comps to work with DS 7+.

    You might want to experiment with the generated task components, as well as generating against the task web services delivered by the ASDK. I've written a rather aged article that shows some experimentation here:

    https://www-secure.symantec.com/connect/articles/creatingimportingexecuting-ns-tasks-workflow