Class WorkflowTaskRunnerParams.Builder

    • Constructor Detail

      • Builder

        public Builder​(Vorgang formRecord)
        Creates a new builder for executing a task of the given form record.
        Parameters:
        formRecord - Form record for which a task is to be executed. Must not be null.
    • Method Detail

      • anonymize

        public WorkflowTaskRunnerParams.Builder anonymize​(Boolean anonymize)
        Parameters:
        anonymize - Whether data related to individual persons or users must be anonymized. When not given, defaults to null. When null, an appropriate default is used: (true when the Projekt.isAnonymize() requires it, or false otherwise.)
        Returns:
        this for chaining.
      • client

        public WorkflowTaskRunnerParams.Builder client​(Mandant client)
        Parameters:
        client - The client to use for executing the workflow. If not given, the client of the form record or the user is used, if available.
        Returns:
        this for chaining.
      • httpContextData

        public WorkflowTaskRunnerParams.Builder httpContextData​(IHttpContextData httpContextData)
        Parameters:
        httpContextData - Data of the current HTTP session, if one exists. If not given, dummy or empty data is used.
        Returns:
        this for chaining.
      • locale

        public WorkflowTaskRunnerParams.Builder locale​(Locale locale)
        Parameters:
        locale - Locale to use for locale-sensitive operations. When not given, the locale of the client or the default locale is used.
        Returns:
        this for chaining.
      • project

        public WorkflowTaskRunnerParams.Builder project​(Projekt project)
        Parameters:
        project - The project to which the form record belongs. When not given, the project is read from the form record.
        Returns:
        this for chaining.
      • unsafeSkipFormRecordLock

        public WorkflowTaskRunnerParams.Builder unsafeSkipFormRecordLock​(boolean unsafeSkipFormRecordLock)
        Whether the form record should be locked for exclusive use, to ensure that a form record is not processed by multiple threads. This should normally be left at the default false.
        Parameters:
        unsafeSkipFormRecordLock - Whether the form record should be locked for exclusive use before a task is executed.
        Returns:
        this for chaining
      • user

        public WorkflowTaskRunnerParams.Builder user​(Benutzer user)
        Parameters:
        user - The user who initiated the workflow execution. If not given, an anonymous user is used.
        Returns:
        this for chaining.
      • xFormRenderConfig

        public WorkflowTaskRunnerParams.Builder xFormRenderConfig​(IXFormRenderConfig xFormRenderConfig)
        Parameters:
        xFormRenderConfig - The configuration that was used to render the form. If not given, a new configuration is created for the project.
        Returns:
        this for chaining.