Package de.xima.fc.inbox.bean
Class ProcessStateChangeBean
java.lang.Object
de.xima.fc.gui.common.utils.msg.I18nUtils
de.xima.fc.gui.common.utils.msg.MessageUtils
de.xima.fc.gui.common.utils.msg.AMessaging
de.xima.fc.gui.common.utils.msg.AJSFContext
de.xima.fc.inbox.bean.ProcessStateChangeBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
Field Summary
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
After for the advanced state change dialog.void
When a state change was triggered and the form data should be saved as well, the form is first submitted, and the workflow is executed.void
void
correctFormRecord
(Status status, boolean validate) void
defaultStateChange
(Long stateId) Changes state of the current form recordDeprecated.Deprecated.Deprecated.void
boolean
boolean
boolean
boolean
boolean
void
Called as a remote command after the form was submitted.void
Used as a remote command.void
performStateChange
(InboxWorkflowServlet.EAction action, boolean runWorkflowProcessing, boolean sendFormData, boolean validateForm, Status targetState) Performs an advanced state change with the given options.void
setFormProcessType
(EFormProcessType formProcessType) void
setFormSubmitted
(boolean formSubmitted) void
setProcessReviewBean
(ProcessReviewBean processReviewBean) Deprecated.void
setRunWorkflowProcessing
(boolean runWorkflowProcessing) void
setSendFormData
(boolean sendFormData) void
setSessionBean
(SessionBean sessionBean) Deprecated.void
setTargetState
(Status targetState) void
setValidateForm
(boolean validateForm) void
setViewBean
(ViewBean viewBean) Deprecated.Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Constructor Details
-
ProcessStateChangeBean
public ProcessStateChangeBean()
-
-
Method Details
-
isRunWorkflowProcessing
public boolean isRunWorkflowProcessing()- Returns:
- Whether workflow processing is skipped when changing the state.
-
setRunWorkflowProcessing
public void setRunWorkflowProcessing(boolean runWorkflowProcessing) - Parameters:
runWorkflowProcessing
- Whether workflow processing is skipped when changing the state.
-
getTargetState
- Returns:
- targetState The target state to for the form record.
-
setTargetState
-
getFormProcessType
- Returns:
- Type of advanced state change that is to be performed
-
setFormProcessType
- Parameters:
formProcessType
- Type of advanced state change that is to be performed
-
isValidateForm
public boolean isValidateForm()- Returns:
- Whether the form data are validated when changing the state.
-
setValidateForm
public void setValidateForm(boolean validateForm) -
isSendFormData
public boolean isSendFormData()- Returns:
- Whether the form is submitted when a state change is performed
-
setSendFormData
public void setSendFormData(boolean sendFormData) -
isFormSubmitted
public boolean isFormSubmitted() -
setFormSubmitted
public void setFormSubmitted(boolean formSubmitted) -
getProcess
-
advancedStateChange
public void advancedStateChange()After for the advanced state change dialog. -
performStateChange
public void performStateChange(InboxWorkflowServlet.EAction action, boolean runWorkflowProcessing, boolean sendFormData, boolean validateForm, Status targetState) Performs an advanced state change with the given options.- Parameters:
action
- Whether the current state of the form record will be changed.sendFormData
- Whether the current form is submitted.validateForm
- Whether to validate the form before submission.targetState
- Target state of the form record. Can benull
iffchangeState
isfalse
.
-
initAdvancedStateChangeDialog
public void initAdvancedStateChangeDialog() -
onFormSubmitted
public void onFormSubmitted()Called as a remote command after the form was submitted. Updates process data -
afterFormSubmitted
public void afterFormSubmitted()When a state change was triggered and the form data should be saved as well, the form is first submitted, and the workflow is executed. Once the form was submitted, this method is called to perform any neccessary updates etc. -
onFormValidationFailed
public void onFormValidationFailed()Used as a remote command. Called when the form could not be submitted because it is invalid. -
defaultStateChange
Changes state of the current form record- Parameters:
stateId
-Long
ID of state to change to
-
correctFormRecord
-
correctFormRecord
public void correctFormRecord() -
isShowAdvancedDialog
public boolean isShowAdvancedDialog() -
getProcessReviewBean
Deprecated. -
setProcessReviewBean
Deprecated. -
getSessionBean
Deprecated. -
setSessionBean
Deprecated. -
getViewBean
Deprecated. -
setViewBean
Deprecated.
-