public class SendWCSOrderCmdImpl extends TaskCommandImpl implements OrderMessagingCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
static java.lang.Integer | MSGTYPE
Deprecated.
This field is replaced by MSGTYPENAME.
|
static java.lang.String | MSGTYPENAME
Message type name for WebSphere Commerce OrderCreateFixFormat message.
|
protected TypedProperty | ocProp
Used to provide data as input parameters to doPreProcess() and doPostProcess()
|
TypedProperty | orderNVP
Used to hold temporary name-value pairs for order information retrieved from database to use when building the message.
|
Constructor and Description |
---|
SendWCSOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | doPostProcess(TypedProperty aRequestProperty)
This method performs additional processing after the command runs.
|
boolean | doPreProcess(TypedProperty aRequestProperty)
This method performs additional processing before the command runs.
|
boolean | doProcess()
This method gets the order information, builds the OrderCreateFixFormat message and sends the message.
|
java.lang.String | getDate(java.lang.String str)
This method converts timestamp string to
|
java.lang.String | getHeaderExtensionRecords()
Implement this method when you extend the command to do outbound message extension at order header level using the USRLST record.
|
java.lang.String | getItemExtensionRecords()
Implement this method when you extend the command to do outbound message extension at order item level using the USRLST record.
|
java.lang.StringBuffer | getOrderMsg()
This method gets the OrderCreateFixFormat message content built by the command.
|
java.lang.Long | getOrderRn()
This method gets the order reference number passed to this command.
|
java.lang.String | getTime(java.lang.String str)
This method converts timestamp string to
|
boolean | isReadyToCallExecute()
This method checks if the command is ready to call Execute.
|
void | performExecute()
This method executes the command by calling doPreProcess, doProcess and doPostProcess
|
boolean | sendMessage()
This method sends the outbound OrderCreateFixFormat message by doing the following:
|
void | setException(java.lang.Exception e)
Sets the execution exception when it happens.
|
boolean | setOrderCreateBillToData()
This method gets all the bill-to data for WebSphere Commerce OrderCreateFixFormat message.
|
boolean | setOrderCreateHeaderData()
This method gets all the order header values for WebSphere Commerce OrderCreateFixFormat message.
|
boolean | setOrderCreateItemData()
This method gets all the order header values for WebSphere Commerce OrderCreateFixFormat message.
|
boolean | setOrderCreatePurchaserData()
This method gets all the purchaser data for WebSphere Commerce OrderCreateFixFormat message.
|
boolean | setOrderCreateStoreData()
This method gets all the store data for the WebSphere Commerce OrderCreateFixFormat message.
|
void | setOrderMsg(java.lang.StringBuffer anOrderMsg)
This method sets the OrderCreateFixFormat message content.
|
boolean | setOrderNVPValues()
This method gets all the name-value pairs for the WebSphere Commerce OrderCreateFixFormat message.
|
void | setOrderRn(java.lang.Long anOrderRn)
This method sets the order reference number used in the command.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties as input for the command.
|
boolean | writeOrder()
This method builds the WebSphere Commerce OrderCreateFixFormat message.
|
public static final java.lang.String COPYRIGHT
public TypedProperty orderNVP
protected TypedProperty ocProp
public static final java.lang.Integer MSGTYPE
public static final java.lang.String MSGTYPENAME
public boolean doPostProcess(TypedProperty aRequestProperty)
public boolean doPreProcess(TypedProperty aRequestProperty)
public boolean doProcess()
public java.lang.String getDate(java.lang.String str)
YYYYMMDDformat.
public java.lang.String getHeaderExtensionRecords()
public java.lang.String getItemExtensionRecords()
public java.lang.StringBuffer getOrderMsg()
public java.lang.Long getOrderRn()
public java.lang.String getTime(java.lang.String str)
HHMMSSformat
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public boolean sendMessage()
- Sets the content of the message.
- Sends the message using outbound messaging system sendTransacted() service.
public boolean setOrderCreateBillToData() throws ECException
public boolean setOrderCreateHeaderData() throws ECException
public boolean setOrderCreateItemData() throws ECException
public boolean setOrderCreatePurchaserData() throws ECException
public boolean setOrderCreateStoreData() throws ECException
public boolean setOrderNVPValues()
public void setOrderRn(java.lang.Long anOrderRn)
public void setOrderMsg(java.lang.StringBuffer anOrderMsg)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public boolean writeOrder()
public void setException(java.lang.Exception e)