Public tasks
How to setup a public task flow using Portal and Valtimo Cor
A public task is always configured as a UserTask in a BPMN model. So to allow users to be invited to complete a task we need to use an expression.

Steps

  1. 1.
    Configure a portal mapping
    1. 1.
      See release notes: Portal mapping changed... under Minor release 8.7.0.RELEASE
  2. 2.
    Configure a UserTask with an expression
    1. 1.
      See release notes: Added Public task mail/message sender Fluent API under Minor release 8.6.1.RELEASE
When a user task has executed the below expression example. The user is email with a login link to gain access to the task. Completing the task will result in a completion of the user task in the Valtimo core process.
1
Note all JsonPointer will retrieve data from the case related to the process.
2
${taskMessageSender
3
.task(task) // taskInstance
4
.form('form-portal-voornaam') // which form to use for the portal task
5
.mailTo('/email') // Json-pointer to the email
6
.firstName('/firstName') // Json-pointer to the firstname
7
.lastName('/lastName') // Json-pointer to the lastName
8
.mailTemplate('task-mail') // optional, simple text mail is the default
9
.languageKey('nl|en') // language setting used in deeplink generation
10
.public() // optional public will generate a landing page also
11
.sendEmail()
12
.publishTask()
13
}
Copied!
Last modified 3mo ago
Copy link
Contents
Steps