Class WorkflowAPI


  • public class WorkflowAPI
    extends ASubAPI
    API for initiating the workflow.
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • WorkflowAPI

        public WorkflowAPI()
    • Method Detail

      • verifyDoubleOptIn

        public IDoiVerificationResult verifyDoubleOptIn​(UserContext uc,
                                                        IDoiVerificationEventData eventData)
        Verifies the Double Opt-In of the formRecord and executes the workflow tasks if necessary
        Parameters:
        uc - User context for accessing the database.
        eventData - holding information necessary for executing the verification event
        Returns:
        the result of executing the double opt-In event
      • initWorkflow

        @Deprecated
        public IWorkflowResponse initWorkflow​(UserContext uc,
                                              Vorgang vorgang,
                                              Status status,
                                              IUser user,
                                              Map<String,​Serializable> sessionAttributes,
                                              boolean isCorrection,
                                              boolean anonymize)
        Deprecated.
        Use methods of the new workflow engine, such as triggerEvent(UserContext, IFormRecordProvidingEvent).
        Parameters:
        uc - User context for database transactions.
        vorgang - Form record for which to run the workflow.
        status - New target state with actions to run.
        user - User for checking permissions.
        sessionAttributes - HTTP session attributes made available to the workflow context.
        anonymize - Whether data related to the user is anonymized when persisted.
        Returns:
        The result of the workflow invocation.
      • initWorkflow

        @Deprecated
        public IWorkflowResponse initWorkflow​(UserContext uc,
                                              Vorgang vorgang,
                                              Status status,
                                              Benutzer user,
                                              Map<String,​Serializable> sessionAttributes,
                                              boolean anonymize)
        Deprecated.
        Use methods of the new workflow engine, such as triggerEvent(UserContext, IFormRecordProvidingEvent).
        Parameters:
        uc - User context for database transactions.
        vorgang - Form record for which to run the workflow.
        status - New target state with actions to run.
        user - User for checking permissions.
        sessionAttributes - HTTP session attributes made available to the workflow context.
        anonymize - Whether data related to the user is anonymized when persisted.
        Returns:
        The result of the workflow invocation.
      • initCorrectionWorkflow

        @Deprecated
        public IWorkflowResponse initCorrectionWorkflow​(UserContext uc,
                                                        Vorgang vorgang,
                                                        Status status,
                                                        IUser user)
        Deprecated.
        Use methods of the new workflow engine.
        Parameters:
        uc - User context for database transactions.
        vorgang - Form record for which to run the workflow.
        status - New target state with actions to run.
        user - User for checking permissions.
        Returns:
        The result of the workflow invocation.
      • initCorrectionWorkflow

        @Deprecated
        public IWorkflowResponse initCorrectionWorkflow​(UserContext uc,
                                                        Vorgang vorgang,
                                                        Status status,
                                                        Benutzer user)
        Deprecated.
        Use methods of the new workflow engine.
        Parameters:
        uc - User context for database transactions.
        vorgang - Form record for which to run the workflow.
        status - New target state with actions to run.
        user - User for checking permissions.
        Returns:
        The result of the workflow invocation.
      • initWorkflow

        @Deprecated
        public IWorkflowResponse initWorkflow​(UserContext uc,
                                              Vorgang vorgang,
                                              Status status,
                                              Benutzer user,
                                              boolean anonymize)
        Deprecated.
        Use methods of the new workflow engine, such as triggerEvent(UserContext, IFormRecordProvidingEvent).
        Parameters:
        uc - User context for database transactions.
        vorgang - Form record for which to run the workflow.
        status - New target state with actions to run.
        user - User for checking permissions.
        anonymize - Whether data related to the user is anonymized when persisted.
        Returns:
        The result of the workflow invocation.