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 September 30th, 2009, 07:38
Junior Member
 
Join Date: Jun 2008
Posts: 3
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zonikee is on a distinguished road
Milestone template for Order Release Event

Hi,

I have a milestone template done for a Order Release Event. However, the alert gets delayed as it only gets triggered when the Event Occured Date expires in GMT timezone. But, the event that i am logging is in Asia/Jakarta timezone. Yet, when i checked in the Order Release Event History table, the timezone gid is always set to 'Local'.

Is there anywhere to get the milestone template to run the Event Occured Date in Asia/Jakarta timezone or is there any method to Add Order Release Event in Asia/Jakarta timezone?

Please note that the Order Release Event is logged through interface and not through XML integration.

Appreciate any feedback. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old September 30th, 2009, 14:20
Senior Member
 
Join Date: Apr 2008
Location: Taiwan
Posts: 205
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 12
Thanked 93 Times in 71 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: Milestone template for Order Release Event

Not sure this is a bug or not.

Based on my experiences, the way that OTM stores event_date in status_history table is:
If time_zone_gid='Local', then it means date recorded is in local time zone. No time zone conversion when displaying on screen.
If time_zone_gid= any time zone gid, event_date is in UTC time zone. When the date is displaying on the screen, OTM will convert it based on time_zone_gid.

So, maybe Milestone treats all event_date in UTC regardless time_zone_gid.

There might be a workaround by saving Event Date in UTC as Refnum using a Agent listens to Status Received event.
Code:
select from_tz(cast(event_date as timestamp),
decode(time_zone_gid,'Local',time_zone_gid,'UTC')) at time zone 'UTC'
from order_release_status_history
where i_transaction_no=$i_transaction_no
Then use Saved Query as Based On in Milestone Link.
__________________
--
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
  #3 (permalink)  
Old October 1st, 2009, 06:44
Junior Member
 
Join Date: Jun 2008
Posts: 3
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zonikee is on a distinguished road
Re: Milestone template for Order Release Event

Thanks Joseph! i will give it a shot.to see if it works

However, i still find it rather odd that OTM does not allow timezone as an input while logging Order Release Event and the milestone template always pick up dates in UTC.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old October 1st, 2009, 15:46
Junior Member
 
Join Date: Jun 2008
Posts: 3
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zonikee is on a distinguished road
Re: Milestone template for Order Release Event

I have tried the suggested method.
And i got a weird error in my SQL, it should be a relatively easy to fix error.
But i still cant spot till now.

2009-10-01 10:28:18.270 817662 Error Exception select ORDER_RELEASE_REFNUM_VALUE from order_release_refnum where order_release_gid=$gid and
ORDER_RELEASE_REFNUM_QUAL_GID='T021.ETA GMT' [SCEM - 1]
2009-10-01 10:28:18.277 817662 Error Exception java.sql.SQLException: ORA-00911: invalid character

I have changed my query serveral times. But its still not working.
Can anyone spot anything?

Thanks!

Last edited by zonikee; October 1st, 2009 at 17:35.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old October 7th, 2009, 23:49
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: Milestone template for Order Release Event

Try unchecking the Refesh Cache tickbox in your Direct SQL Statement of your agent.
__________________

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
Step Tender Milestone Template joecallan Workflow and Agents 0 February 19th, 2009 16:48
Order Release Event Notifications albert Workflow and Agents 10 January 30th, 2008 20:18
Order Release Upload Via CSV Template Dilday Stephen Email List Archive 0 October 16th, 2007 04:12
[SOLVED] Re: Order Release Upload Via CSV Template Rick v100 Email List Archive 0 October 16th, 2007 04:12
[SOLVED] Order Base Template Arun George Order Processing 1 January 3rd, 2007 01:39



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