Workflow and ServiceDesk Community

 View Only
  • 1.  Web Form Project -> Workflow Project

    Posted Aug 13, 2012 04:35 PM

    I know this is an extremely vague post and I apologize for that right now. :)

    I'm trying to figure out how to create a web form project that passes data up to more of a "back end" workflow project so I don't have one massive workflow for our user management (onboarding/offboarding/account changes)

    It was described to me about a year ago that I could leverage smaller, more light weight web forms projects that would pass the required data into the bigger workflow so all of the processing, logging, etc. could be done in that workflow, but I'm not entirely sure what I should be looking for or if there are any examples or videos on workflowswat or elsewhere that would show this in a somewhat easy format.

    Thanks!



  • 2.  RE: Web Form Project -> Workflow Project
    Best Answer

    Posted Aug 13, 2012 05:02 PM

    In your Workflow project, goto the Publishing tab and set the Workflow Type to "Webservice". Then in the Project Tree, under the Primary Model look for "Input Data". Click on that and then on the right side, add your variable names and their datatypes you want to pass from the WebForm project to the Workflow project. See the example below with one variable defined.

     

    Publish your Workflow to your server. Then you need to create an integration project (if you don't have one already) and add a Web Service Caller generator that points to the URL of you Workflow webservice. It will be in the form of http://<your server>/<workflow virtual directory>/MyService.asmx. (Note you can change the name of the webservice asmx inside the Workflow project if needed under the Publishing tab where is has the Primary service section). Comppile and close the integration project.

    Open your web form project and add the integration project library to that project. Then in the component toolbox drag and drop the Execute Component from your web service to the point in your web form you want to pass over to your workflow. Edit the component and map in the data to pass that corresponds with how you setup the 'Input Data' in the workflow I mentioned previously. Debug to test.

    That's it in a nutshell. Here is a good video from the WorkflowSWAT site that explains how the Web Service generator can be configured.

    Enjoy!