Class ProcessStateChangeBean

    • Constructor Detail

      • ProcessStateChangeBean

        public ProcessStateChangeBean()
    • 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 be null iff changeState is false.
      • 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()