otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire

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

Unassignment of Order Releases through Agent actions


Planning Planning orders in OTM / G-Log - including bulk planning, itineraries, planning parameters, load configuration and optimization.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 17th, 2009, 07:21
Member
 
Join Date: Dec 2007
Posts: 46
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
vabilisetty is on a distinguished road
Unassignment of Order Releases through Agent actions

Hi All,

I want to unassign some order releases from my Shipment, whose external status is defined as per my requirement.I donot want the unassignment to happen through seeded Actions--- Unassign Order - Buy action, but i want to use an agent action of Unassigning in the Agent.

I am facing issues for unassigning in this case. All the Order Releases in the Shipment are not getting unassigned by this agent action; as they were to be with the "seeded Actions--- Unassign Order - Buy action".

Can anyone help on this.

Regards,
Satya
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old September 17th, 2009, 13:58
Member and Blogger
 
Join Date: Oct 2007
Location: Netherlands
Posts: 209
Groans: 0
Groaned at 2 Times in 1 Post
Thanks: 18
Thanked 31 Times in 28 Posts
Rep Power: 3
LourensGlog is on a distinguished road
Send a message via AIM to LourensGlog Send a message via Yahoo to LourensGlog
Re: Unassignment of Order Releases through Agent actions

If I read your post right you say that the manual action to unassign an order release works, but if you unassign this order release with an agent it fails.
If this is the case, check out the system log to figure out what caused the error, and you may want to contact Oracle Support, as it sounds like a bug.
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old September 17th, 2009, 14:21
Senior Member
 
Join Date: Apr 2008
Location: Taiwan
Posts: 209
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 12
Thanked 98 Times in 74 Posts
Rep Power: 3
josephliang will become famous soon enoughjosephliang will become famous soon enough
Send a message via MSN to josephliang Send a message via Skype™ to josephliang
Re: Unassignment of Order Releases through Agent actions

I have no problem unassigning orders by agent. But I have to say, sometimes it would be tricky.
May I know your OTM version and scenario you were trying to do.
__________________
--
Joseph Liang
Enterprise Integration, Inc.

http://www.eiisolutions.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old September 22nd, 2009, 08:47
Member
 
Join Date: Dec 2007
Posts: 46
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
vabilisetty is on a distinguished road
Re: Unassignment of Order Releases through Agent actions

Hi Joseph,

I am presently using OTM 5.5 CU5, the agent do runs for un-assignment, but if we have a set of Order Releases , the un-assignment through agent basically triggers the un-assignment of the first OR rather than all in a sequential manner(as it happens through manual actions (Unassign OR - BUY)).

Please suggest.

Regards,
Murthy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old September 23rd, 2009, 00:28
Member and Blogger
 
Join Date: Oct 2007
Location: Netherlands
Posts: 209
Groans: 0
Groaned at 2 Times in 1 Post
Thanks: 18
Thanked 31 Times in 28 Posts
Rep Power: 3
LourensGlog is on a distinguished road
Send a message via AIM to LourensGlog Send a message via Yahoo to LourensGlog
Re: Unassignment of Order Releases through Agent actions

Here's a scenario where unassignment per agent may not work.
Order A: Location X to Y, 100 LB
Order B: Location X to Y, 50 LB
Order C: Location X to Y, 850 LB
Shipment created X to Y for 1,000 LB with Rate with minimum weight 200 LB

If you unassign Order C, the shipment is no longer feasible, as the total weight is now 150 LB and lower than the minimum weight of the rate, so OTM will throw an error. There may be another rate set up in OTM for shipments below 200 LB, but OTM doesn't select a different rate after unassigning, it just recalculates the existing rate.

What you may consider is instead of unassigning some orders, just replanning the remaining orders that you do want to keep planned. Downside of unassigning orders is that your shipments are no longer 'optimized', for example you have 3 orders from X to Z that don't fit on one truck and OTM creates 2 shipments. If you remove one order, you could still be stuck with 2 shipments, even though they could fit on just one. If you would replan the two remaining orders, OTM will create one single shipment.
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old September 23rd, 2009, 02:08
Senior Member
 
Join Date: Apr 2008
Location: Taiwan
Posts: 209
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 12
Thanked 98 Times in 74 Posts
Rep Power: 3
josephliang will become famous soon enoughjosephliang will become famous soon enough
Send a message via MSN to josephliang Send a message via Skype™ to josephliang
Re: Unassignment of Order Releases through Agent actions

How is the unassign agent triggered?
Can you see any errors in the log?

I also had a case that unassign agent may fail.

If two agents are trying to unassign orders from the same shipment, deadlock may occur:
Code:
java.sql.SQLException: ORA-00060: deadlock detected while waiting for resource  
I have a workaround for this. Let me know if you need it.
__________________
--
Joseph Liang
Enterprise Integration, Inc.

http://www.eiisolutions.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old September 24th, 2009, 13:48
uma uma is offline
Junior Member
 
Join Date: May 2007
Posts: 9
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 0
uma is on a distinguished road
Re: Unassignment of Order Releases through Agent actions

Hi Satya,

May be you can give a try this way if it suits your business scenario. Having agent type as Shipment and using saved condition select all the order releases related to the particular shipment and then use data type association as shipment to order release and do the unassigning of orders.

Hope this helps!!!

Regards,
Uma
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old February 8th, 2010, 14:41
Junior Member
 
Join Date: Jul 2008
Posts: 5
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dkhemani is on a distinguished road
Re: Unassignment of Order Releases through Agent actions

Hi Joseph,
I am having a case where two agents are trying to unassign orders from the same shipment, and thus a dead lock is occuring.
Can you suggest the solution you had mentioned about in this post.

Regards
Deepak
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old February 9th, 2010, 00:55
Senior Member
 
Join Date: Apr 2008
Location: Taiwan
Posts: 209
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 12
Thanked 98 Times in 74 Posts
Rep Power: 3
josephliang will become famous soon enoughjosephliang will become famous soon enough
Send a message via MSN to josephliang Send a message via Skype™ to josephliang
Re: Unassignment of Order Releases through Agent actions

The deadlock issue, according to Oracle, unfortunately is "worked as design".

There are three workarounds on top of my head.

1. Use Wait in Error Handler
1) Add WAIT (1 second should be enough) and UNASSIGN ORDER actions in Error Handler.

Disadvantages: 1) Only can reduce chances of deadlock happening. 2) WAIT may delay process time.

2. Use Data Queue
1) Log on as DBA.ADMIN and go to Business Process Automation > Data Queue Management > Data Queue
2) Activate LIFETIME queue and adjust Thread Count, Batch Size, Polling Frequency accordingly.
** Thread Count should be as small as possible to minimize chances of deadlock.
3) Create a custom event, say OR - QUEUE UNASSIGN
4) Create an Agent listens to OR - QUEUE UNASSIGN and does UNASSIGN ORDER
5) Replace action UNASSIGN ORDER with QUEUE EVENT: OR - QUEUE UNASSIGN to your original agents

Disadvantages: 1) QUEUE EVENT may delay process time. 2) Only one LIFETIME Data Queue is available in OTM. Therefore, need to consider performance if LIFETIME Data Queue is widely used.

3. Shrink agentPlanning queue
UnassignOrder is handled by agentPlanning queue, which has 4 threads by default (if I remember correctly). However, simply shrink agentPlanning queue to 1 may affect other actions handled by the queue such as AcceptTender, BuildShipment, etc. (see glog.webserver.event.TopicQueueAssignmentsServlet) Therefore, my workaround is to designate UnassignOrder to be handled by a single-thread custom queue.
1) Modify glog.properties of OTM App
** Properties must be placed within Custom Thread Properties section
Code:
#--------------------------------------------------------------------
# Custom Thread Properties - Beginning
#--------------------------------------------------------------------
# Place all thread changes and properties here.
# This section will be used during GC3 Upgrades
#--------------------------------------------------------------------
 
glog.workflow.topicGroup=agentPlanningJoseph,1
glog.workflow.topic.group.glog.server.agent.business.order.UnAssignOrder=agentPlanningJoseph
 
#--------------------------------------------------------------------
# Custom Thread Properties - End
#-------------------------------------------------------------------- 
2) Restart OTM

Disadvantages: 1) Single-thread may delay process time. 2) Although I have been using this for several customers, it is still an unsupported approach by Oracle. Please note the risk.

I guess the best way is to raise an ER to Oracle and hope it will be fixed in the future.
__________________
--
Joseph Liang
Enterprise Integration, Inc.

http://www.eiisolutions.net/

Last edited by josephliang; February 9th, 2010 at 06:45.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

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
How to use agent to do a Direct Planning Actions? yeowleng Planning 5 April 21st, 2009 11:29
[SOLVED] Reordering Agent Actions otmhaight Workflow and Agents 3 August 13th, 2008 20:38
How can I Add new Agent Actions? yeowleng Workflow and Agents 0 August 8th, 2008 05:22
Creating Shipments automatically by grouping order releases of single order base neoandr Order Processing 5 February 26th, 2008 08:57
[SOLVED] Generating Order Releases within a SAW (OTM v4.5) John Nadvornik Email List Archive 0 January 25th, 2007 07:15



All times are GMT. The time now is 04:00.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

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 37 38 39 40