public class SetApprovalsDetailsViewCmdImpl extends ToolsControllerCommandImpl implements SetApprovalsDetailsViewCmd
The command is invoked when a user clicks the "Summary" button while viewing a list of approvals. The selected approval request id is supplied as a parameter to this command. The command will retrieve the entityId corresponding to the approval request. This entityId will be passed to the view as the ID parameter.
The view will depend on the flow type associated with the approval request and will be obtained from the VIEWNAME column of the FLOWTYPE table. If the viewname is null, it will be set to ApprovalConstants.EC_NO_SUMMARY_VIEW.
The name of the parameter which will be used to pass the entity id to the view can be customized. The attribute of the FLOWTYPE is a string consisting of name/values pairs. If this string contains an idName, the value of idName will be used as the parameter to the view. If this string does not contain an idName, the parameter to the view will be the value of ApprovalConstants.EC_SET_DETAIL_ID.
This command uses the following Access Beans:
Modifier and Type | Field and Description |
---|---|
java.lang.Long | aprvId
Approval status id.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
SetApprovalsDetailsViewCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long | getAprvId()
Gets the approval status ID to be acted on.
|
void | performExecute()
Determine the view and the name of the parameter in which to pass the entity id.
|
void | reset()
Reset the command for next use.
|
void | setAprvId(java.lang.Long newAprvId)
Sets the approval request ID.
|
void | setRequestProperties(TypedProperty reqParms)
Sets the request parameters.
|
public static final java.lang.String COPYRIGHT
public java.lang.Long aprvId
public java.lang.Long getAprvId()
public void performExecute() throws ECSystemException
Retrieves the APRVSTATUS record corresponding to the request to obtain the entityIid and the flowTypeId. Subsequently retrieves the flowtype record to obtain the view name and parameter name.
If the view name is null, it will set the view to ApprovalConstants.EC_NO_SUMMARY_VIEW.
The parameter name is obtained from the flowtype attribute. The attribute is a string consisting of name/value pairs. The idName field will contain the parameter name. If the attribute does not contain an idName, the value of ApprovalConstants.EC_SET_DETAIL_ID will be used as the parameter.
public void reset()
public void setAprvId(java.lang.Long newAprvId)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException