Workflow Soluiton

 View Only
Expand all | Collapse all

How to start an external Workflow

Migration User

Migration UserJan 17, 2012 08:21 AM

Migration User

Migration UserJan 17, 2012 09:29 AM

Migration User

Migration UserJan 19, 2012 07:32 AM

  • 1.  How to start an external Workflow

    Posted Dec 21, 2011 04:01 AM

    We have a workflow with an application form, which will start another workflow (not embedded) and to pass some data to the new workflow. Is there a component or a solution?

     

    Thanks for your replies



  • 2.  RE: How to start an external Workflow

    Posted Dec 21, 2011 06:52 AM

    Can you deploy the workflow as a webservice, then call the Execute method of the webservice by a generated webservice component?



  • 3.  RE: How to start an external Workflow

    Posted Jan 10, 2012 06:01 AM

    Thanks for your reply.

    I must honestly confess, I have no idea what your response means

    Unfortunately we got only a basic education. Anything else we need to teach ourselves



  • 4.  RE: How to start an external Workflow

    Posted Jan 10, 2012 08:52 AM

    1. Deploy your workflow as a webservice. (Workflow Type should be Webservice under Publishing in Project Properties)

    2. Run the webservice generator. To do this you can either click the New Integration Library button when a workflow is open, or select Integration library when doing a New project from Workflow Manager - either option goes to the same place. Pick the Web Service generator option.

    In the generator, use the URL of the deployed workflow (http://<SERVERNAME>/WorkflowProject1/MyService.asmx, for example) to generate components. Keeping all the defaults is fine. You should be able to generate a component against the Execute method of the webservice.

    3. Now that you have an Execute component, you can drop it to any project you want and invoke the workflow as you please.



  • 5.  RE: How to start an external Workflow

    Posted Jan 11, 2012 04:17 AM
    Thanks it worked wonderfully.But  How can data passed to the Webservice Component ?
     
    For Example: I make an Name Entry in my Form and that Name shall be in the Webservice Component.
     
     


  • 6.  RE: How to start an external Workflow

    Posted Jan 11, 2012 06:59 AM

    I'm assuming the webservice takes a Name parameter. Your flow would basically look like this:

    Start - Form Builder - generated Web Service component - End

    Your form builder would have a textbox that accepts input. You can specify that input, the Output Data, as "def".

    Next, in your generated web service component, you would specify the "def" Process Variable as the Name input parameter.

    Hope this helps.



  • 7.  RE: How to start an external Workflow

    Posted Jan 11, 2012 06:59 AM

    Add Input Data to primary model then publish the project again and repeat the process of generation webservice caller components. New components should have input parameters exactly the same like those defined in project.



  • 8.  RE: How to start an external Workflow

    Posted Jan 11, 2012 08:57 AM

    Here is my simple Example Workflow:

    On the Formbuilder we have only a Textbox, the outputname is: v_eingabe

     

    From the executive Component we start a simple Mail Send:

     

    We want to see the text from : "v_eingabe" in the body of the Email

    I don't understand what you mean with "def"

     



  • 9.  RE: How to start an external Workflow

    Posted Jan 13, 2012 04:41 AM

    Ok, it works with one Variable.

    I was able to pass "one" variable to the execute component.

    But when i want to pass more than one i got this Failure/Warning:

    When i use "Yes"  and select more than one variable the workflow doesn't run



  • 10.  RE: How to start an external Workflow

    Posted Jan 15, 2012 05:44 PM

    In the popup above, click the Process Variable radio button.

    Clear all the values under Value from Process Variables by striping the values and clicking the Remove button.

    Now that it's clear, click the add button and browse to the element on the stream. The message above should go away. You get this message when you specify more than one value for an element that's only expecting one.



  • 11.  RE: How to start an external Workflow

    Posted Jan 16, 2012 09:30 AM
      |   view attached

    This doesn' work i always get this message. I think i have made an error in the "defs". Is this maybe possible ?

    In the Execution Component i can also select one variable. (or i make something wrong)

    I attached my integration library, so you can maybe take a look at it.

    I hope you know what i want.

    A Form for enter Text in different text fields (to / subject/ body etc...) and this should pass to the Send Email Component

     

     

     

     

    Attachment(s)

    zip
    email_modul_starten_2.zip   20 KB 1 version


  • 12.  RE: How to start an external Workflow

    Posted Jan 16, 2012 12:07 PM

    That integration component references a local server I can't access. Can you confirm that the web service takes a single string for a parameter, and not an array?



  • 13.  RE: How to start an external Workflow

    Posted Jan 17, 2012 04:30 AM

    Ok, here are my steps i do in the Library:

    =>

    =>

    =>

     

    =>



  • 14.  RE: How to start an external Workflow

    Posted Jan 17, 2012 07:04 AM

    I'm pretty sure this input is not an array, so this is just a simple issue I can't see. Would it be possible for you to attach ypour package as a .zip to this thread? I can fix and repackage to thread once I have it fixed.



  • 15.  RE: How to start an external Workflow

    Posted Jan 17, 2012 08:21 AM
      |   view attached

    Ok here it is:

    Attachment(s)

    zip
    Email_Senden_2_all.zip   1.00 MB 1 version


  • 16.  RE: How to start an external Workflow

    Posted Jan 17, 2012 09:29 AM
      |   view attached

    Attached is the package with everything hooked up.

    Attachment(s)

    zip
    Email_Senden_2_new.zip   1.31 MB 1 version


  • 17.  RE: How to start an external Workflow

    Posted Jan 17, 2012 09:54 AM

    I got a message that my version is newer thay yours. By downgrading i got severals Error.

     

    Can you show me the sites where i have to check ?

     



  • 18.  RE: How to start an external Workflow
    Best Answer

    Posted Jan 17, 2012 10:08 AM
      |   view attached

    I'm on a trunk build... OK, I've added a step-by-step guide with pics to hooking up the parameter. I'll attach it as well as display the steps here:

    1.       In the component editor, click the ... button by v_betreff

    2.       Select Process Variable and click the Add button.

    3.       Stripe v_betreff and click OK.

    4.       Click OK again to close the dialog... you’ve now hooked up the parameter

    Attachment(s)



  • 19.  RE: How to start an external Workflow

    Posted Jan 19, 2012 07:32 AM
    Many many thanks for your effort, it works now.