Tutorial: Calculator

Tutorial: Calculator

Step 2: Modify the Output Configuration

Step 2: Modify the Output Configuration

Prerequisite: Delete the
Configure Output
step that you created in Step 4: Configure the Output of the
Create a Process
section. In place of the Configure Output Assignment step, add a Decision step with two branches, each with an Assignment step. Use the Assignments steps to assign outputs for both a fault scenario and a non-fault scenario.
  1. Select the
    Configure Output
    step and click the
    Delete
    button.
    The
    Configure Output
    step disappears from the canvas.
  2. Select the
    Start
    step and change the
    Type
    of the
    Quotient
    output field to
    Text
    .
    You do this because Quotient might have a text value, of say, "fault" instead of an integer.
  3. Drag a
    Decision
    step on to the canvas before the
    End
    step and select the step.
    A Decision step with two converging paths appears.
  4. Configure the following properties for the
    Decision
    step:
    1. Click the
      General
      tab and enter
      Has a Fault Occurred
      in the
      Name
      field.
    2. Click the
      Decision
      tab and select
      Faulted
      from the
      Field
      list.
    3. In the
      Value
      field of
      Path 1
      , enter
      Yes
      as shown in the following image:
      This image shows the properties section of the Fault Decision step. The condition is that if the Faulted field equals yes, path one is taken. You also see a part of the canvas.
  5. Drag Assignment steps onto the
    Contains Yes
    and
    Otherwise
    paths.
    You do this to assign outputs in the case of a fault and if there is no fault.
  6. Select the
    Assignment
    step on the
    Contains Yes
    path.
    The step properties section appears.
  7. Configure the following properties for the
    Assignment
    Step:
    1. Click the
      General
      tab and enter
      Configure Output for Fault
      in the
      Name
      field.
    2. Click the
      Assignments
      tab and add the following fields:
      Field
      Type
      Value
      Sum
      Field
      AddResponse
      AddResult
      Difference
      Field
      SubtractResponse
      SubtractResult
      Product
      Field
      MultiplyResponse
      MultiplyResult
      Quotient
      Content
      Fault
  8. Select the
    Assignment
    step on the
    Otherwise
    path.
    The step properties section appears.
  9. Configure the following properties for the
    Assignment
    Step:
    1. Click the
      General
      tab and enter
      Configure Output for No Fault
      in the
      Name
      field.
    2. Click the
      Assignments
      tab and add the following fields:
      Field
      Type
      Value
      Sum
      Field
      AddResponse
      AddResult
      Difference
      Field
      SubtractResponse
      SubtractResult
      Product
      Field
      MultiplyResponse
      MultiplyResult
      Quotient
      Field
      DivideResponse
      DivideResult
  10. Click
    Validation
    . If there are no errors, click
    Save
    .
    If there are errors, fix the errors, and then save the process.
  11. Click
    Actions
    Publish
    .
The following image shows the complete modified process:
This image shows the canvas view of the complete proces. You see a Start step, an Assignment step, a Parallal Paths step with four branches, a Service step with fault handling enabled, a Decision step, and two Assignment steps.

Back to Top

0 COMMENTS

We’d like to hear from you!