otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Functional Topics > Workflow
Reload this Page

Possibility of creation of Child Events in Agent


Workflow Configuring Workflow components - including Agents, Milestones, Notifications Auto Data Assignment and Events.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old May 2nd, 2008, 21:11
Member
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
neoandr is on a distinguished road
Possibility of creation of Child Events in Agent

Hi,
I want an agent to listen to modification of BASE COST in Shipment. I selected the agent event SHIPMENT - COST MODIFIED and found not child event set is assoicated with it.

As we know, generally in OTM, the cost types are base , accessorial, discounts,etc. But i want agent to listen only for BASE COST and not other costs.. I can go with saved conditions.

But......
Is it possible to create child events when the event does not contain any?? I searched in power data and also help file but of no use reg. ceration.

Appreciate your guidance..

thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old May 27th, 2008, 10:19
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
AntonyC is on a distinguished road
Send a message via AIM to AntonyC Send a message via Skype™ to AntonyC
Re: Possibility of creation of Child Events in Agent

Hi there,
This is possible but not using standard events.

You will need to create a custom event that is triggered from a change to a defined field in a defined table, that custom event will trigger an agent that can compare your costs to a pre-stored cost in the shipment_cost_remarks table.

What I suggest is that on shipment creation you copy the BASE shipment cost to the shipment cost remarks via Direct SQL Update.

Then, populate the following 4 tables with details of the new event and table and column names (this can be done via CSV, SQL etc)
1) NOTIFY_SUBJECT
2) AGENT_EVENT
3) AGENT_EVENT_TABLE_MAPPING
4) AGENT_EVENT_COLUMN_MAPPING

In the AGENT_EVENT_TABLE_MAPPING you should specify the SHIPMENT_COST table
In the AGENT_EVENT_COLUMN_MAPPING you should specify the SHIPMENT_COST table and the COST field
In the agent_event table you should specify the new event that you want to trigger.,
(Note: the data_query_type_gid field should be SHIPMENT and the event_topic_class field should be: glog.server.workflow.lifetime.shipment.CustomModSh ipmentEvent)

The new event can then trigger a new agent that in the actions can compare the BASE cost stored in the shipment cost remarks with the current value to see if it is the BASE cost that has changed, if it has then update it and continue to do the actions you need.

Also another note, you will need to bounce the app once you have populated the four tables so that OTM can cache the new event.

Hope this helps.
Regards,
Antony
__________________
Antony Carter
Mavenwire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old June 1st, 2008, 03:41
Member
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
neoandr is on a distinguished road
Thumbs up Re: Possibility of creation of Child Events in Agent

i thought it would be as simple as creation of custom events in OTM. But after you have mentioned abt it i need to try it in my training environment.

Thank you so much for such a wonderful explanation.
I have one query to be clarified... you have mentioned that "You will need to create a custom event that is triggered from a change to a defined field in a defined table"..
is it possible to trigger an agent based on change in particular field

I also tried to figure out but got no clue abt doing that , to my understanding, agent will trigger based on some event captured by OTM...will it trigger for even database table change?
Please let me know abt this

Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old June 2nd, 2008, 07:43
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
AntonyC is on a distinguished road
Send a message via AIM to AntonyC Send a message via Skype™ to AntonyC
Re: Possibility of creation of Child Events in Agent

Yes, that's correct. Populating the four tables I mentioned will enable OTM to trigger a custom event, and hence an agent, for a change to a field in the UI that has it's own database field.

Cheers.
__________________
Antony Carter
Mavenwire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to AntonyC For This Useful Post:
neoandr (June 2nd, 2008)
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Agent Event krishna.kk Workflow 6 July 24th, 2007 14:01
Events krishna.kk Freight Forwarding 0 June 13th, 2007 08:52
[SOLVED] User defined shipment events creation Sanju Workflow 2 June 4th, 2007 04:49
OTM SIG Calendar of Events chrisplough News and Events 0 May 7th, 2007 17:58
Updating Order Release events when Shipment events are entered vn_karthik Execution 4 January 17th, 2007 20:49



All times are GMT. The time now is 01:24.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36