Create a material aspect

Before you begin

Note: Activities can be inserted at both the workflow and subprocess levels.

About this task

Material aspects dynamically extend existing material definition instances or classes by adding new attributes and business logic without modifying or recompiling the original objects.

Procedure

  1. In the navigator, click Workflow > Workflows.
  2. In the Workflows list, select the resource you want to work with.
    Note: A resource must already have been added in order to select it from this list.
  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 IMaterial to display the list of available call methods.
  8. Click AddAspect, and then click Finish.
    The input parameters appear in the activity configuration panel.
  9. Configure the call method as follows:
    1. In the Aspect Name field, enter the name of the aspect you want to add to the resource.
    2. In the material field, click the ellipsis button, and then select the class or definition to add the aspect to.
  10. Click Save.
  11. Run the workflow, or, on the Test/Debug tab, test the workflow to ensure that your input parameters are configured correctly.