Package de.xima.fc.inbox.bean
Class ProcessFormRecordEditBean
- java.lang.Object
-
- de.xima.fc.inbox.bean.ProcessFormRecordEditBean
-
- All Implemented Interfaces:
Serializable
@ViewScoped @Named public class ProcessFormRecordEditBean extends Object implements Serializable
Bean for the dialog where the user may select a workflow task to initiate and whether the current form data should be saved.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessFormRecordEditBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.LocaleBean
getLocaleBean()
ProcessReviewBean
getProcessReviewBean()
IStateViewModel
getSelectedState()
SessionBean
getSessionBean()
InvokableTaskModel
getTask()
void
initFormRecordEditDialog()
Called when the form record edit dialog is opened.boolean
isSendFormData()
boolean
isValidateForm()
void
onFormSubmitted()
Called as a remote command after the form was submitted.void
onFormValidationFailed()
Used as a remote command.void
performAdvancedFormRecordEdit()
After pressing OK in the advanced form record edit dialog.void
performFormRecordCorrection()
Save the current form data, but does not initiat the workflow.void
performTaskInvokation(InvokableTaskModel model)
Invokes the given task of the current form recordvoid
setLocaleBean(LocaleBean localeBean)
void
setProcessReviewBean(ProcessReviewBean processReviewBean)
void
setSelectedState(IStateViewModel selectedState)
void
setSendFormData(boolean sendFormData)
void
setSessionBean(SessionBean sessionBean)
void
setTask(InvokableTaskModel task)
void
setValidateForm(boolean validateForm)
void
startFormRecordCorrection()
Callback when the correction button in the inbox is pressed.
-
-
-
Method Detail
-
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 necessary updates etc.
-
getLocaleBean
public LocaleBean getLocaleBean()
-
getProcessReviewBean
public ProcessReviewBean getProcessReviewBean()
-
getSessionBean
public SessionBean getSessionBean()
-
getTask
public InvokableTaskModel getTask()
- Returns:
- The workflow task that should be initiated. May be
null
when no task should be initiated.
-
initFormRecordEditDialog
public void initFormRecordEditDialog()
Called when the form record edit dialog is opened.
-
isSendFormData
public boolean isSendFormData()
- Returns:
- Whether the current form data should be saved.
-
isValidateForm
public boolean isValidateForm()
- Returns:
- Whether the form is validated before the current form data is saved. Applicable only when
isSendFormData()
is set totrue
.
-
getSelectedState
public IStateViewModel getSelectedState()
-
setSelectedState
public void setSelectedState(IStateViewModel selectedState)
-
onFormSubmitted
public void onFormSubmitted()
Called as a remote command after the form was submitted. Updates process data.
-
onFormValidationFailed
public void onFormValidationFailed()
Used as a remote command. Called when the form could not be submitted because it is invalid.
-
startFormRecordCorrection
public void startFormRecordCorrection()
Callback when the correction button in the inbox is pressed.
-
performFormRecordCorrection
public void performFormRecordCorrection()
Save the current form data, but does not initiat the workflow.
-
performAdvancedFormRecordEdit
public void performAdvancedFormRecordEdit()
After pressing OK in the advanced form record edit dialog.
-
performTaskInvokation
public void performTaskInvokation(InvokableTaskModel model)
Invokes the given task of the current form record- Parameters:
model
- Trigger and task to initiate, as selected by the user.
-
setLocaleBean
public void setLocaleBean(LocaleBean localeBean)
-
setProcessReviewBean
public void setProcessReviewBean(ProcessReviewBean processReviewBean)
-
setSendFormData
public void setSendFormData(boolean sendFormData)
- Parameters:
sendFormData
- Whether the current form data should be saved.
-
setSessionBean
public void setSessionBean(SessionBean sessionBean)
-
setTask
public void setTask(InvokableTaskModel task)
- Parameters:
task
- The workflow task that should be initiated. May benull
when no task should be initiated.
-
setValidateForm
public void setValidateForm(boolean validateForm)
- Parameters:
validateForm
- Whether the form is validated before the current form data is saved. Applicable only whenisSendFormData()
is set totrue
.
-
-