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
@ViewScoped @Named public class ProcessStateChangeBean extends AJSFContext
- See Also:
- Serialized Form
-
-
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 Constructor Description ProcessStateChangeBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
advancedStateChange()
After for the advanced state change dialog.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.void
correctFormRecord()
void
correctFormRecord(Status status)
void
defaultStateChange(Long stateId)
Changes state of the current form recordEFormProcessType
getFormProcessType()
Vorgang
getProcess()
ProcessReviewBean
getProcessReviewBean()
Deprecated.SessionBean
getSessionBean()
Deprecated.Status
getTargetState()
ViewBean
getViewBean()
Deprecated.void
initAdvancedStateChangeDialog()
boolean
isFormSubmitted()
boolean
isRunWorkflowProcessing()
boolean
isSendFormData()
boolean
isShowAdvancedDialog()
boolean
isValidateForm()
void
onFormSubmitted()
Called as a remote command after the form was submitted.void
onFormValidationFailed()
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, 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, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
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
public Status getTargetState()
- Returns:
- targetState The target state to for the form record.
-
setTargetState
public void setTargetState(Status targetState)
-
getFormProcessType
public EFormProcessType getFormProcessType()
- Returns:
- Type of advanced state change that is to be performed
-
setFormProcessType
public void setFormProcessType(EFormProcessType formProcessType)
- 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
public Vorgang 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
public void defaultStateChange(Long stateId)
Changes state of the current form record- Parameters:
stateId
-Long
ID of state to change to
-
correctFormRecord
public void correctFormRecord(Status status)
-
correctFormRecord
public void correctFormRecord()
-
isShowAdvancedDialog
public boolean isShowAdvancedDialog()
-
getProcessReviewBean
@Deprecated public ProcessReviewBean getProcessReviewBean()
Deprecated.
-
setProcessReviewBean
@Deprecated public void setProcessReviewBean(ProcessReviewBean processReviewBean)
Deprecated.
-
getSessionBean
@Deprecated public SessionBean getSessionBean()
Deprecated.
-
setSessionBean
@Deprecated public void setSessionBean(SessionBean sessionBean)
Deprecated.
-
getViewBean
@Deprecated public ViewBean getViewBean()
Deprecated.
-
setViewBean
@Deprecated public void setViewBean(ViewBean viewBean)
Deprecated.
-
-