Overview task listeners

Deprecated Java Core API v1 listeners will not be available in the next major release. Use Java Workflow API v2 listeners where available or script tasks to replace the functionality of v1 listeners. See Alternatives to API v1 listeners for examples.

  • ActionMailSender: Sends workflow action emails for the task that this task listener is configured for. Only simple tasks are possible without required form input except buttons.
    Field nameMandatoryDescription
    templateNThe name of the template that should be used to generate the email.
    sectionNThe name of the section that should be used to generate the mail.
    grouped

    Y

    The option to send the action mail grouped or not, by default this option is false.

    subjectYThe subject of the action mail to be send for non-grouped email.
    executeIfTrueYThe option to send the action email (true) or not (false).

    includeActivityStream

    Y

    The option to include the activity stream in the email (true) or not (false)

    includeAttributes

    Y

    The option to include the attributes in the email (true) or not (false).

    includeRelations

    Y

    The option to include the relations in the email (true) or not (false).

    relationTypes

    only if includeRelations is true

    A comma separated list of relation types to be shown in the email.

    If the file is empty, all relation types corresponding to the matching assignment groups are displayed.

    attributeTypes

    only in includeAttributes is true

    A comma separated list of attribute types to be shown in the email.

    If the file is empty, all attribute types corresponding to the matching assignment groups are displayed.

  • CheckMandatoryFieldCombinationTaskListener: Checks if the configured combination of form property input fields have at least one value field filled in. If not a error message will be shown to the user.

    Field nameExpressionsMandatoryDescription
    formFieldsNYA CSV of form property ids to do the mandatory check on.
  • SetFormSubtitleTaskListener: This sets a given string value as the subtitle for the form to be displayed on the task. With this you can tweak the form presented to the user with custom subtitles.

    Field nameExpressionsMandatoryDescription
    subtitleYYThe string value for the form subtitle
  • SetRoleResourceTaskListener: This provides the possibility to override the business item that is used to determine the users with given roles scoped for a certain task. Useful when you want to evaluate candidate user expression against another resource than the current workflow business item. Keep in mind that this can make the candidate user check fail as it will only check on the current business item and will not take this listener into account. When using this listener disable the check on the workflow configuration page.

    Field nameExpressionsMandatoryDescription
    resourceIdYYThe id of the new resource
    resourceTypeYYThe String representation of the new resource type e.g. TE for term.
  • SetValueTaskListener: Sets a variable in the workflow context. It can be used to evaluate expressions or user expressions and store the parsed value in a task LOCAL variable. This means as soon as you exit the current user task, the variable will not be available anymore.

    Field nameExpressionsMandatoryDescription
    valuesExpressionY

    Y

    (if userExpression is not used)

    An expression that will be evaluated.
    userExpressionY

    Y

    (if valuesExpression is not used)

    User expressions that you want to have evaluated.
    resultVariableNYThe name of the variable for the result to be restored in