public class ApprovalCheckApproverForEntityCmdImpl extends TaskCommandImpl implements ApprovalCheckApproverForEntityCmd
Before executing this task command, the following sets should be performed:
Upon completion of the command, the following should be called to retrieve boolean result
Behaviour
This command will check if there is an approval record for the given approver id and entity (flow type + BusinessEntityId).
This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long | approverId
Approver id
|
protected java.lang.Long | businessEntityId
Entity id
|
protected java.lang.String | businessFlowTypeIdentifier
Flow type identifier
|
protected boolean | canApprove
Whether or not the user can approve
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ApprovalCheckApproverForEntityCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean | isApprover()
Returns whether or not the user is an approver for this submission.
|
boolean | isReadyToCallExecute()
Check if the command is ready to be executed.
|
void | performExecute()
The main logic.
|
void | setApproverId(java.lang.Long newApproverId)
Sets the ID of a user to check to see if approver of entity.
|
void | setBusinessEntityId(java.lang.Long newBusinessEntityId)
Sets the ID of the business entity object for which the approval is being requested.
|
void | setBusinessFlowTypeIdentifier(java.lang.String newBusinessFlowTypeIdentifier)
Sets the identifier of the type of business flow for the approvable action.
|
public static final java.lang.String COPYRIGHT
protected boolean canApprove
protected java.lang.Long approverId
protected java.lang.String businessFlowTypeIdentifier
protected java.lang.Long businessEntityId
public ApprovalCheckApproverForEntityCmdImpl()
public boolean isApprover()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void setApproverId(java.lang.Long newApproverId)
public void setBusinessEntityId(java.lang.Long newBusinessEntityId)
public void setBusinessFlowTypeIdentifier(java.lang.String newBusinessFlowTypeIdentifier)