Reuse Method Content: Contribute to a Task

The goal of this exercise is to extend a Task by adding a contribution. By now you should start to see the general pattern with this variability mechanism. Recall that contributions append text in appropriate fields from one content package to another.

  1. Switch back to the Authoring perspective. authoring icon
  2.  

  3. Create a new Task in the Contribution Test content package.

     

    new task created under contribution test

     

  4. Use the following attributes for this task:

     

     

    contributing task

     

  5.  

  6. Click on the Steps tab and add two new steps named "Contributing Step 1" and "Contributing Step 2".
  7.  

  8. Click on the Description tab. In the Variability Relationship section select Contributes and then click the Select... button.
  9. The Select Dialog: Tasks window will appear.

     

  10. Select create_test_case and click OK. This will be the base element for our contribution.
  11.  

  12. Go back to the Steps tab and click the Order button. Now use the Up and Down buttons to reorder the steps. Note that you can now insert your new steps into the original sequence of steps inherrited from the base. This is a good example of the power of variability contributions.
  13.  

    re-ordering task steps

     

  14. Save the new task by closing the editor panel.
  15.  

  16. Switch to the Browsing perspective.
  17.  

  18. Expand the Disciplines folder, then the Disciplines subfolder, then the Test folder. Double-click on the Create Test Cases task. The Content panel now shows a preview of the generated page.
  19.  

    modified create test case task

     

    Note how the text we entered in Step 3 has been appended to the brief description and purpose fields on this generated page. Note also that the name and presentation name were not affected by the contribution.

     

  20. Look at the steps to see how your new material was contributed. You should see the text that you included in the contributing task displayed in the Create Test Cases task.
  21.  

  22. You can also try specifying additional Artifacts, Guidance, and Additional Performer Roles in the contributing task (using the Authoring perspective) and then view the result in the configuration view to see the behavior.

 

Continue