Академический Документы
Профессиональный Документы
Культура Документы
Janette Lockhart
Technical Manager
Agenda
• Overview
• The Event Manager
• Events
• Systems
• Agents
• Subscriptions
• Seeded Business Events in the E-Business Suite
• Example Business Event Scenarios
• Conclusion
Oracle Workflow BES Overview
<company>.<family>.<component>.<object>.<event
>
Registering a Business Event
• Customization Level
• Used primarily by E-Bus Suite events
• “Core” – no changes allowed to event definition
• “Limit” – only the event status (enabled or
disabled) may be updated
• “User” – any property of the event definition may
be updated
• Custom events automatically get a customization
level of “User”
Registering a Business Event
• Seeded registration for an E-Business Suite
Event
Raising a Business Event
wf_event.raise
(p_event_name => ‘oracle.apps.ap.event.invoice.approval’
,p_event_key => p_invoice_id||’-’||l_event_key);
END;
System
• Agent Name
• Internal identifier, unique within System
• Protocol
• Specifies how message is transported and
encoded
• Sending and receiving agents must use same
protocol
• Can be networking standard like SQLNET or B2B
standard like SOAP
• Other seeded protocols are HTTP, SMTP or JMS
Registering an Agent
• Agent Address
• Only required for inbound agents
• For SQLNet, format is
<schema>.<queue>@<database link>
• Queue Handler
• PL/SQL or Java program that contains enqueue
and dequeue logic for the queue
• Translates between workflow event data type and
data type expected by the Agent’s queue
• WF_Event_QH is provided for Agents using
SQLNet protocol and WF_Event_T data type
Registering an Agent
• Queue Name
• Format: <schema>.<queue name>
• Queue Name is how local system interacts with
the queue
• Address is how external systems interact with the
queue
• Direction
• Inbound communication
• Outbound communication
Registering an Event Subscription
• Subscriber
• Triggering Event
• Execution Condition
• Phase
• Controls immediate vs. deferred processing
• Controls execution order
• Status
• Only enabled subscriptions are executed
• Rule Data
• Key – subscription only needs the event key
• Message – subscription needs complete event data
Registering an Event Subscription
• Action Type
• Execute custom business logic
• Launch a workflow
• Send an event message to an Agent
• E-Business Suite
• XML Gateway Trading Partner transaction
• Send Notification
Seeded E-Business Suite Events
Create a Subscription
Subscribing to a Seeded Event
Subscribing to a Seeded Event
Subscribing to a Seeded Event