Workflow Soluiton

 View Only
  • 1.  How can I get a Workflow 7.1 Decision Project to include more than one related method?

    Posted Jan 17, 2012 11:59 AM

    Dear All,

    I want to make a WebForms project available as a WebService, so that another Web Service can run with some inputs and get the same outputs. However, WebForms Projects cannot be exposed as Web Services.

    I have worked out that I need to create a Workflow Decision Project which does all of the underlying processing and then returns the information back to the WebForms project with the processing finished.

    Problem - I do not know how to expose more than one Method for a Decision Project - there is just one name for the method on a Decision Project. Is it possible to have more than one, or do I need to make one Web Service for one piece of the processing and another for another piece, such as:

    1) Get the list of possible inputs.

    2) Create outputs from one input.

    3) Commit changes to the database for the operation from 2 above.

    Do I need more than one Decision Project or can I create more than one Method? Most over Web Services have multiple Methods?!

    Kindest regards,

    QuietLeni



  • 2.  RE: How can I get a Workflow 7.1 Decision Project to include more than one related method?

    Posted Jan 17, 2012 12:13 PM

    The easiest way to do this is pretty similar to what the SD.DataServices library does:

    1. Add new models to your decision project to make different methods.

    2. Go to the root of your project to access the project properties. Go to the Models tab. Stripe the new models you want as "methods" and click Make Invocation Target. Typically I use the Model Name stripped of any spaces to use as my method name.

    3. Publish your project as a web service. Multiple methods should be available in your web service.



  • 3.  RE: How can I get a Workflow 7.1 Decision Project to include more than one related method?

    Posted Jan 17, 2012 12:26 PM

    Reecardo,

    Is this nowhere in the UI, then? This is a hack?

    Kindest regards,

    QuietLeni



  • 4.  RE: How can I get a Workflow 7.1 Decision Project to include more than one related method?
    Best Answer

    Posted Jan 17, 2012 12:56 PM

    Sure it's part of the UI... see the following picture:



  • 5.  RE: How can I get a Workflow 7.1 Decision Project to include more than one related method?

    Posted Jan 18, 2012 05:02 AM

    I have marked a Solution, but I just realised that I could make a very simple Workflow Project and set up models which could be consumed as Web Services.

    Is this a better solution? This project is only going to be used by one user, not many and this is why I had gone with the WebForms Project in the first place.

    Kindest regsrds,

    QuietLeni



  • 6.  RE: How can I get a Workflow 7.1 Decision Project to include more than one related method?

    Posted Jan 18, 2012 07:01 AM

    It really depends on what you want.

    Iif your web method is going to be a "workhorse", and basically just return a "b" for input "a", then I would just use a Decision project.

    However, if your web method will be an actual workflow, where the method needs to stop and wait for people to perform tasks before continuing, then I'd use a Workflow project.