Search for material definitions using a workflow call method

This procedure describes how to search for material definitions using parameter names and values as search criteria.

About this task

When you configure the search parameters, keep the following in mind:
  • You can use empty strings as parameter values; however, null values are not allowed.
  • You can enter a maximum of 10 parameters in each field.
  • You must enter the same number of name and value parameters.
  • Boolean values must be entered as 1 to represent True or Yes, or 0 to represent False or No.
  • DateTime values must be in UTC time zone, with the following format: yyyy-mm-dd hh:mi:ss.
  • The search returns a maximum of 5,000 results.

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 FindMaterialDefinitions, and then click Finish.
    The input parameters appear in the activity configuration panel.
  9. In the Parameter name field, click the ellipsis button to open the String Collection Editor dialog box, and then enter the parameter names you want to use as search criteria.
    Note: Enter a maximum of 10, one on each line.
  10. In the Parameter values field, click the ellipsis button to open the String Collection Editor dialog box, and then enter the parameter values you want to use as search criteria.
    Note: Enter a maximum of 10, one on each line.
  11. Click OK, and then click Save.
  12. Run the workflow, or, on the Test/Debug tab, test the workflow to ensure that your input parameters are configured correctly.