Business Process Automation
Generating Reference Numbers by Agent Actions
This example details configuring the Business Number Generator and an automation agent to create a reference number on an object. This example also details configuring Oracle Transportation Management to add a shipment reference number to new shipments using the format: <YYYYMMDD>-<four-digit sequence number>. These steps assume that you have already created a reference number qualifier.
- Navigate to the Business Number Rule page: Business Process Automation > Power Data > Business Numbers > Business Number Rule
- Click New.
- Enter a unique BN Rule, such as "DATE REF".
- Create a new BN Type by clicking the New icon. Then on the Business Number Type page:
- Enter a BN Type.
- Enter "EMPTY_CONTEXT" in the BN Context ID field.
- Click Finished and return to the BN Rule page.
- Select the Default check box.
- Enter the rule definition: {dddddddd:id=1}-{nnnn:contexts=1:start=1}.
- Select the BN generator: "PICTURE"
- Click Finished.
- Navigate to: Business Process Automation > Agents and Milestones > Automation Agent.
- Click New.
- Enter a unique Agent ID, such as SHIPMENT-GENERATE REFNUM.
- Set up agent with an agent type of SHIPMENT.
- Set the event to be SHIPMENT -CREATED.
- Click Save to save the event.
- Click View/Enter Actions.
- Click Add Action.
- In the Agent Action Selection window, select GENERATE REFNUM from the Action drop-down list.
- Select desired reference number qualifier, such as BM.
- Select the BN Type created above (DATE REF).
Note: The BN Type may optionally be left blank and instead specified on the Reference Number Qualifier.
- Click Save.
- Click Finished.
Related Topics
Configuring and Using the Business Number Generator
Creating a New Business Number Rule Definition
Configuring a Named Range with Recycling