Direct links to fixes
APAR status
Closed as program error.
Error description
A customizable method (MarketingServicesTaskCmd.adjustServerTime) is called to check if an activity is currently applicable on an e-Marketing Spot based on the activity start and end times. However, this method is only passed the store ID, and is not passed an individual activity. A customization may want to have some activities checked against the current time, and other activities checked against a different date such as the order delivery date.
Local fix
Problem summary
USERS AFFECTED: WebSphere Commerce v7 customers who want to use the MarketingServicesTaskCmd.adjustServerTime method. PROBLEM ABSTRACT: Customization ability is needed to determine if a web activity is available on an e-Marketing Spot based on a date other than the current date. BUSINESS IMPACT: Customers cannot implement the desired customization. RECOMMENDATION:
Problem conclusion
A new method is added to MarketingServicesTaskCmd that can be implemented. /** * This method is called by the marketing services to get the time used to check * if an activity is currently applicable on an e-Marketing Spot based on the activity * start and end times. Return a different time if you do not want the check to be against * the current time, for example, if you want the check to be against the order * delivery date. * @param activity The marketing activity. * @param time The current server or preview time. * @return The time to use when comparing to the activity start and end time. If the time * does not need to be adjusted, then return the time passed to this method. The default * implementation of this method returns the time passed into this method. */ public Timestamp getTime(Activity activity, Timestamp time); This method will be called : - when checking start and end dates for an activity - when checking start and end dates for an experiment - to get the time to check against the criteria in a Time Target - when checking start and end dates for a promotion in the Recommend Promotion action All other scenarios where a date/time is required will use the time returned by the adjustServerTime method (by default, the current time). A customization can extend MarketingServicesTaskCmdImpl and implement getTime. It can check (for example custom fields on the activity) to determine if the method should return the time passed into the method (the current time or preview time) or it should return a different time (for example, the order delivery date). ------------------------------------------------------------- The latest available maintenance information can be obtained from the Recommended Fixes for WebSphere Commerce technote: http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
Temporary fix
Comments
APAR Information
APAR number
JR42507
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
YesSpecatt / New Function
Submitted date
2012-04-11
Closed date
2012-06-25
Last modified date
2012-06-25
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WC BUS EDITION
Fixed component ID
5724I3800
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
25 June 2012