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


Order Processing Shipment planning and order processing - including data requirements, line items, ship units, order bases and order releases.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 8th, 2008, 11:37
Junior Member
 
Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Kiseleva is on a distinguished road
How to assign Itinerary to OR automatically

The question is: How to assign Itinerary to Order Release (OR) automatically according some attributes in OR?
For each lane or source\destination we have one standard Itinerary. After OR was created I want system to put this standard Itinerary into field Buy Fixed Itinerary in Constraints tab.
As I know the only way in OTM to do that is to use Auto Assignment Rule. But assignment type choices are limited and there is nothing about Itinerary.
Is it possible to add the assignment type for this situation (Order Release - Buy Fixed Itinerary)?
May be there are another ways to solve it?

Thanks for any help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old October 9th, 2008, 01:44
Member
 
Join Date: Dec 2007
Posts: 87
Groans: 1
Groaned at 1 Time in 1 Post
Thanks: 5
Thanked 16 Times in 16 Posts
Rep Power: 3
james_foran is on a distinguished road
Re: How to assign Itinerary to OR automatically

We use agents to perform this sort of action.

We have saved Conditions that look for certain refnums on the OB, then we set the Itinerary/Mode based on these.

I am not sure if this is the best way to do it, but it does the job.

Cheers,
__________________
James Foran
Toll Solutions
http://www.tollgroup.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old October 9th, 2008, 05:46
Junior Member
 
Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Kiseleva is on a distinguished road
Re: How to assign Itinerary to OR automatically

Hi James! Thank's for answering :-)
I thought about agent and I like the idea of saved condition, but how exactly do you set the Itinerary/Mode in OR? Is it direct SQL update or some other action? I tried to make SQL statement for it, but I don't know how to affect ONLY ORs that satisfy saved condition.
If you use statement
update ORDER_RELEASE
set FIXED_ITINERARY_GID='TEST.ITINERARY_1'
you'll update all the ORs...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old October 9th, 2008, 06:13
Member
 
Join Date: Nov 2007
Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3
arunk is on a distinguished road
Re: How to assign Itinerary to OR automatically

Quote:
Originally Posted by Kiseleva View Post
Hi James! Thank's for answering :-)
I thought about agent and I like the idea of saved condition, but how exactly do you set the Itinerary/Mode in OR? Is it direct SQL update or some other action? I tried to make SQL statement for it, but I don't know how to affect ONLY ORs that satisfy saved condition.
If you use statement
update ORDER_RELEASE
set FIXED_ITINERARY_GID='TEST.ITINERARY_1'
you'll update all the ORs...
Add a where condition to your update query, say for e.g if you are going to fix the itinerary based on your source/destination,define those locations in the where condition of your update query,
update ORDER_RELEASE
set FIXED_ITINERARY_GID='TEST.ITINERARY_1'
where SOURCE_LOCATION_GID='XXX' and DEST_LOCATION_GID='YYY'
__________________
Regds
Arun.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old October 9th, 2008, 06:32
Junior Member
 
Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Kiseleva is on a distinguished road
Re: How to assign Itinerary to OR automatically

Hi Arun! Thanks for attention to my problems :-)
I understand that I can use where condition in SQL but in this case what sense in saved condition that I've defined in the first tab of the Agent?
Actually saved conditions is more understandable instrument for users to regulate 'default' itineraies than SQL.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old October 9th, 2008, 06:51
Member
 
Join Date: Nov 2007
Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3
arunk is on a distinguished road
Re: How to assign Itinerary to OR automatically

One way i would suggest is instead of writing IF, ELSE on saved condition, write an agent that looks for OR Created event and in the actions tab do a direct sql update with the query you have created.
__________________
Regds
Arun.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old October 9th, 2008, 07:17
Junior Member
 
Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Kiseleva is on a distinguished road
Re: How to assign Itinerary to OR automatically

Good idea, but how exactly can I call OTM saved condition that I've created (Business Process Automation-->Power Data-->Event Management-->Saved Conditions)

from SQL statement?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old October 9th, 2008, 07:40
Member
 
Join Date: Nov 2007
Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3
arunk is on a distinguished road
Re: How to assign Itinerary to OR automatically

Quote:
Originally Posted by Kiseleva View Post
Good idea, but how exactly can I call OTM saved condition that I've created (Business Process Automation-->Power Data-->Event Management-->Saved Conditions)

from SQL statement?
Why do you want to call the saved condtions incase if you are going to use a direct SQL update?

Instead of creating saved quries and conditions use the Direct SQL update action in the agent and wite your own SQL there.

Let me know if i didnt understand your question.
__________________
Regds
Arun.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old October 9th, 2008, 08:18
Junior Member
 
Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Kiseleva is on a distinguished road
Re: How to assign Itinerary to OR automatically

I understand that it's possible to write SQL which satisfy the conditions we need, but...
Actually I'm trying to find another tool (not SQL) to assign Itineraries to ORs because it'll be too complex for my customer to write their own SQLs for every new condition that will appear.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old October 9th, 2008, 09:36
Member
 
Join Date: Nov 2007
Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3
arunk is on a distinguished road
Re: How to assign Itinerary to OR automatically

Apart from using Automation agents i really don't have an idea how this can be acheived.

One another way, provided if your OR's are not getting created in OTM and feeded from outside as XML's you can directly update that XML in the integration.

But this is something out of box from OTM.
__________________
Regds
Arun.
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
Assign Appointments to the shipment surender Planning 2 March 4th, 2009 14:56
Cannot assign null value to variable Kiseleva Workflow and Agents 2 February 6th, 2009 06:40
Assign Function cool_brat Security 3 September 1st, 2008 04:45
Rate ID Generate automatically new_otm Execution 4 April 13th, 2008 16:50
Assign Rate to SAW without re-calculating transit times spistolpete Rating 1 February 28th, 2008 00:40



All times are GMT. The time now is 01:30.
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