Configure New Item Request Workflow

In this example, you're an administrator configuring the new item request workflow. The approval criteria is based on the attributes (or extensible flexfields) configured for the item class, and the criteria is configured using BPM worklist.

You can also use this topic as a reference to troubleshoot configuration errors. You must go through each subtopic to ensure that the configuration is complete and also review the privileges assigned to your role.

Prerequisite

As a prerequisite for this example:

  • Create an item class named Radios in the root item class.

    To create an item class, use the Manage Item Classes task in the Product Management offering.

  • For the new item request type, ensure that you set the number generation method to Sequence Generated and you fill in the required fields.

    To configure the number generation method, use the Manage New Item Request Type Details task in the Product Management offering.

  • Create an approval group by using BPM Worklist.

Configuration Summary

  1. Create an attribute group that includes attributes (or extensible flexfields) and associate it with the item class.

  2. Configure the item class: Enable the item class for new item request, configure the definition workflow for the new item request, and assign an attribute group to the item class.

  3. Create a rule set that includes the validation criteria and associate it with the attribute group.

  4. Configure an approval criteria based on attributes by using BPM worklist.

How You Create an Attribute Group

Here's how you create an attribute group named Region, add an attribute named Country, and add a country in the list of countries.

  1. In the Setup and Maintenance work area, select the following:

    Offering: Product Management

    Functional Area: Items

    In the Show list, select All Tasks.

    Task: Manage Item Attribute Groups and Attributes

  2. Here's how you create a single row attribute group named Region:

    1. On the Manage Attribute Groups page, click Create.

    2. Enter the display name of the attribute group as Region.

    3. Behavior: Select Single Row so that users can only set it once.

    4. Click Save.

  3. In Context Usages, you must set up at least one context:

    1. Click Create.

    2. Name: Select Item and click Save.

  4. Attributes: Here's how you create an attribute named Country to include a list of countries.

    1. Click Create. Enter the following values:

      Name: Country

      Internal Name: Country

      Data Type: Character

      Display As: List of values

    2. Click Create Value Set. Here are the properties:

      Value Set code: Countries List

      Module: Product Development

      Validation Type: Independent

      Value Data Type: Character

      Value Subtype: Text

      Maximum Length: 30

    3. Click Save.

    4. To add specific countries in the list, click Manage Values.

    5. In the Manage Values dialog box, click Create.

      Enter India.

      Repeat this step to add other countries to the list.

      Click Save and Close.

Configure the Item Class

Here's how you configure the item class named Radios.

  1. In the Setup and Maintenance work area, select the following:

    Offering: Product Management

    Functional Area: Items

    Task: Manage Item Classes

  2. Search for the item class named Radios and click Edit.

  3. To enable the item class for new item request:

    1. In the Edit Item Class page, click Item Management.

    2. Select Enable New Item Request and click Save.

  4. To configure the definition workflow for the new item request, expand Definition Workflow Details and click Add Row:

    Here are the details of the workflow:

    Sequence number: 10

    Assignee Type: Person

    Response Required From: One

    Business Entity: Item Operational Attributes

    Associated Entity: Main

  5. To assign an attribute group to the item class, click Pages and Attributes Groups.

    1. In the Attribute Groups subtab, click Select and Add.

      Search for the attribute group named Region that you created in a previous step and add that attribute group.

    2. Click OK and click Save.

  6. To assign the attribute group to a specific page, in Pages and Attributes Groups, click the Pages subtab.

    1. In this example, select Product Development to add an attribute group to the Product Development page. Note that you must select the page based on your business requirement.

    2. In Attribute Groups, click Select and Add.

    3. Search for and add the attribute group named Region that you created in a previous step.

    4. Click OK, and click Save and Close.

  7. You must deploy the attribute group assigned to the item class. Here's how:

    1. In the Setup and Maintenance work area, go to the following:

      Offering: Product Management

      Functional Area: Items

      In the Show list, select All Tasks.

      Task: Deploy Item Extensible Flexfields

    2. In the Deploy Item Extensible flexfields page, search for "item" and select Item Extended Attributes.

    3. Click Deploy Flexfield.

  8. You must ensure that attributes appear as part of the item class in Product Development work area. Here's how:

    1. Navigate to the Product Development work area

    2. Create an item in the Radios item class.

      The attribute group named Region and the attribute named Country must appear in the General Information page of the item.

Configure the Approval Workflow Using BPM Worklist

Here's how you create a rule using BPM Worklist to manage the approval workflow in a new item request.

  1. In the Setup and Maintenance work area, go to the following:

    • Offering: Product Management

    • Functional Area: New Item Requests

    • Task: Manage Task Configurations for Supply Chain Management

    If you receive a message prompting you to start synchronization, click Start Synchronization and wait for the synchronization to complete.

  2. Select NewItemRequestApprovalTask.

  3. To make changes to the approval task, click Edit task.

  4. Click the Assignees tab. The New Item Request workflow appears.
    Note: Don’t delete any predefined rule sets available in BPM Worklist.
  5. In New Item Request Header Rule Based Single Approver, click the diamond icon (within the workflow diagram) and click Go to rule.

  6. To create a new rule, click Add Rule (plus icon).

  7. Enter a rule name. For example, India.

    Expand the rule and enter its details.

  8. Here's how you set up the IF condition based on an item class and an attribute you created in previous steps.

    • Enter Radios followed by a dot.

      The attributes and properties configured for the Radios item class appear in a list. Select the attribute based on which you want to create the rule.

      Or

      You can also use the condition browser so that you get a better view of attributes that you can use. Here's how:

    • Click the Search icon. Enter Radios (the name of the item class) in the Condition Browser dialog box.

      Attributes appear in a node created by the application. It's recommended to expand each node to find and select the attribute you want to use.

      In this example, Radios, Radios2 and Radios3 are the nodes. The attribute named Country appears in Radios2.

    • To create a rule based on country, select Radios2 > Region > Country and click OK.

    • The expression Radios2.region.country is inserted in the IF condition.

    • Let's say you want to route the approval of items manufactured in India to a group.

      In the expression builder, select "is" as the operator and enter India.

  9. Here's how you set up the THEN condition:

    1. Click Add >Add Approver > Approval Group.

      Response Type: Required

      Approval Group: Select an approval group for the new item request

      Allow empty group: False

    2. Click Validate and click the Save icon.

    3. To activate the rule, click the Commit task icon.

Rule Syntax with Examples

Here's what you need to keep in mind while writing approval rules:

If you're associating an attribute group to a root item class, use this syntax:
[<Root Item Class Name>].[<Attribute Group Name>].[<Attribute Name>]

The root item class name is usually JItemRootIccPrivate and it may be suffixed by a number 2 or 3, for example.

JItemRootIccPrivate, JItemRootIccPrivate2 or JItemRootIccPrivate3.

So let's say you have a Buying Area attribute group in the root item class and Buying Value is the attribute, then the syntax would be:
JItemRootIccPrivate3.itemEFFTLBUYING5FAREAPrivateVO.buyingValue
If you're associating an attribute group to a non-root item class, and the item class and attribute group both have an internal name (API name) defined, use this syntax:
[<Attribute Group Name API>].[<Internal Attribute Name>]

Example: If country is Canada and MSRP is greater than 10 CAD, then Approval Group is Marketing and Pricing Team. The rule is written like this:

PlmMarketingAndPricing.country is "Canada" and

PlmMarketingAndPricing.msrp more than 10

THEN

Approval Group: MarketingAndPricingTeam

Here's an image that shows the rule added in BPM Worklist.An image that shows the rule added in BPM Worklist

If there's no API name defined for the item class, add the item class name before the attribute group name. The item class name is an automatically generated name, starting with JItem. The attribute group name starts with itemEFF.

[<Item Class Name>].[<Attribute Group Name>].[<Attribute Name>]

If there's no API name defined for the attribute group, you can edit the attribute group name and add the API name.

Best Practices

  • When you create an item class or an attribute group, make sure you specify the API name.
  • Avoid creating item classes with names such as Item, ItemCategory, ItemRevision, ItemSupplier, RevisedItemLineApproval, ChangeObjectApproval, Evidence, and Certificate. Or creating similar names for the item class and flexfield attribute groups. Distinct names help ensure that rules run without error.