Pass Parameters to ProcessFlow

Sort:
You are not authorized to post a reply.
Author
Messages
mcl
Advanced Member
Posts: 29
Advanced Member

    I have a process flow that I want users to trigger from portal.  I have two input fields that I want to pass as parameters to the Flow.  How do I get the parameter fields from the Design Studio "text box" to the Flow? 

    Scooter
    Veteran Member
    Posts: 83
    Veteran Member
      add javascript before the flow is submitted to capture (or retrieve ) the two fields.
      Gary Davies
      Veteran Member
      Posts: 248
      Veteran Member

        Can be done one of two ways. If you are using the Workflow Trigger within Design Studio,  when you bring the wizard up there is a section where you define the parameters you are passing and they can be literals,portal variables, or fields from the form.  

        If you are coding the trigger using javascript, you would use getFormValue to get the value of a screen field and build an ags call to WFWK.1.   If you are 8.0 the call to WFWK is under the LOGAN product line, otherwise for 9.0 it is under the application product line.

        Gary Davies

        www.automated-workflow.com

        vc727
        Advanced Member
        Posts: 44
        Advanced Member

          Could you be a little more specific on seting up the parameters when using the design studio trigger. I am trying to do this and am having trouble passing the values.

          Gary Davies
          Veteran Member
          Posts: 248
          Veteran Member

            You can trigger flows from Design Studio by either hardcoding an AGS call with Javascript or using the Trigger Workflow API. The Trigger Workflow will create a workunit based only on the successful completion of a function code. You tell DS which function code by clicking on the form properies, select the Actions tab, click on the action code (Add, Change, etc) that you want to trigger the workunit and click on Properties.

            There is a check box labeled Work Flow Enabled. With that check you click on the ... button next to the Work Flow Trigger field and a wizard similair to those in Add Ins and ProcessFlow guides you through building the trigger.

            You select the Service attached, then can define criteria. To add variables click on the Add Variable button from the Trigger Variable and Criteria Selection window (3rd in seq of windows). You can add three types of variables, User, Literal and Form Field. Literal fields are "hard coded" values, static text. User fields are values stored on your profile such as Employee number, login etc. You can see what variables are available by doing a servlet/Profile? and Form fields are fields defined on the form. You need to click on the Add button before the new variable will be recognized and displayed in the list of variables in the textarea above it.

            Gary Davies

            www.automated-workflow.com

            You are not authorized to post a reply.