Create a work segment response for a work request using a workflow

Before you begin

In a workflow subprocess, you use two call method activities to perform this task. You can create expressions or bind properties for many of these properties, depending on your workflow requirements.

Procedure

  1. In the navigator, click Workflow > Workflows.
  2. In the resource list, select the workflow that you want to work with. If no workflow exists, create a new workflow. See Add a Resource to the Workflow Model.
  3. In the Displays panel, click Workflow Management > Workflow Editor.
  4. Click the Workflow Editor tab.
  5. Insert an activity:
    • At the workflow level:
      • From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
        Note: Activities can exist only between the presubprocess and postsubprocess.
    • At the subprocess level:
      • Double-click the local subprocess you want to add the activity to.
      • From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
  6. On the activity configuration panel, click Configure Method.
    The Configure Method dialog box appears, displaying a list of the available call method service providers.
  7. Double-click IProductionRuntime to display the list of available call methods.
  8. Click CreateWorkResponse.

    1. Click Next to select a work type, and then click Finish.
      The input parameters appear in the activity configuration panel.
    2. In the Description field, enter a description or expression, or bind a property or parameter to the method.
    3. In the Location field, click the ellipsis button, and then select an equipment location.
    4. In the S95 ID field, enter a name or expression, or bind a property or parameter to the method.
  9. In the Work Request field, click the ellipsis button.
    The Universal Browser appears.
  10. Select the work request you want to associate with the work response.
  11. Repeat steps 5-7.
  12. Click CreateSegmentResponse, and then click Finish.
    The input parameters appear in the activity configuration panel.
  13. Optionally:
    1. In the Description field, enter a description or expression, or bind a property or parameter to the method.
    2. In the End Time and Start Time fields, select a date and time, or add an expression, or bind a property or parameter to the method.
    3. In the Location field, click the ellipsis button, and then select an equipment location.
    4. In the S95 ID field, enter a name or expression, or bind a property or parameter to the method.
  14. In the Work Process Segment field, click the ellipsis button, and then select a process segment to associate with this segment response.
  15. In the Parent ID field, click the arrow, and then select Bind.
    The Select Variable dialog box appears.
  16. Expand the CreateWorkResponse call method added in step 8, select a ReturnValue property, and then click OK.
  17. Click Save.
  18. Run the workflow, or, on the Test/Debug tab, test the workflow to ensure that your input parameters are configured correctly.
    When the workflow runs, the segment response is created and can be viewed in the Response Information tab of the work request associated with the work request selected in step 11.