com.ibm.commerce.order.commands
Class OrderFlowEntityBean
com.ibm.commerce.order.commands.OrderFlowEntityBean
- public class OrderFlowEntityBean
OrderFlowEntityBean is used in the OrderProcess approval flow.
It is a BusinessFlowEntityBean and to be passed from one state to another.
Method Summary |
java.lang.Long |
getEntityId()
Returns the id of the entity bean. |
java.lang.Integer |
getStateIdentifier()
Returns the stateIdentifier of the entity bean. |
void |
save()
saves the state information in the entity bean. |
void |
setEntityId(java.lang.Long aId)
Sets the id of the entity bean. |
void |
setStateIdentifier(java.lang.Integer aStateIdentifier)
Sets the state identifier of the entity bean. |
OrderFlowEntityBean
public OrderFlowEntityBean()
getEntityId
public java.lang.Long getEntityId()
- Returns the id of the entity bean. It is the same as the order id.
getStateIdentifier
public java.lang.Integer getStateIdentifier()
- Returns the stateIdentifier of the entity bean.
save
public void save()
- saves the state information in the entity bean.
setEntityId
public void setEntityId(java.lang.Long aId)
- Sets the id of the entity bean.
setStateIdentifier
public void setStateIdentifier(java.lang.Integer aStateIdentifier)
- Sets the state identifier of the entity bean.
Depending on the state identifier passed in, the status of the order will be changed accordingly.
- If state identifier = 1 (cancelled), the status of the order is set to 'X'.
- If state identifier = 2 (rejected), the status of the order is set to 'N'.
- If state identifier = 5 (pending approval), the status of the order is set to 'W'.