Create a Simple Application

First, let’s create an application for the decision. Its process starts with a web form, which has two input fields where you enter temperature and rain forecast numbers. It then uses a decision element to call the decision service. Lastly, a human task element displays the decision result, which tells you what to bring for the day based on the weather.

  1. Create an application.

    Click Processes and then click Process Applications to go to the Process Applications page, and then click Create.

    Click Create an Application. Enter a name (What To Bring) and click Create.

  2. Create a process.

    In the Create a Process pane, click Start with a form, enter a process name (Decision Process), and click Create.

  3. Add a decision and human task.

    On the Decision Process tab, expand System on the Elements palette, drag a Decision element to the process, and drop it after the start event.

    Expand Human on the palette, drag a Submit element to the process, and drop it after the decision element.

  4. Rename the flow elements.

    Double-click the flow elements and rename the start event to Input Forecast, the decision to Decide What to Bring, and the human task to Display Result.

    Description of decision-process.png follows
    Description of the illustration decision-process.png

  5. Add a web form.

    Select the Input Forecast element, click Menu Menu icon, and select Open Properties. In the Title field, enter a name (Forecast) to display for the application.

    Click Create New Form Add icon next to the Form field. Enter InputForecastWebForm in the Name field, select the Open Immediately check box, and click Create.

  6. Add the forecast input fields to the web form.

    From the Basic palette, drag and drop two Number controls and one Input Text control onto the canvas. Select each control and edit its Label field in the Properties pane, changing the number controls to Temperature and Rain, and the text control to What To Bring.

    Select the What To Bring control, scroll down the General tab, and select the Hide check box. Notice that the control becomes dimmed to indicate it’s hidden.

  7. Add a presentation to display results.

    Click the form outside a control. On the Form tab, click Add Presentation Add Presentation icon next to Presentations. In the Select Presentation Type dialog box, select Clone. In the Create Presentation dialog box, select Main in the Select from Previous Presentation field, enter a name for the new presentation (Result), and click Create. On the new Result presentation, select the What To Bring control and deselect the Hide check box.

    Description of webform-presentation.png follows
    Description of the illustration webform-presentation.png

  8. Save the application.
  9. Return to the process by clicking the Decision Process tab. Open the properties for the Display Result human task. Click Browse Browse icon next to the Form field and select InputForecastWebForm. In the Presentation field, select Result.