In most circumstances your users will interact with workflow processes by logging into your site and using the Self Service or User Requests templates via the "My Account" area of your site.
It's also possible to link directly to workflow tasks, displaying the next task form on any article that uses the Forms Service template.
To link to a task, add the process instance business key as a parameter to any link to an article using the Forms Service template. If you are working in a Mail Activity in a process model, the instance's business key can be accessed in the
You could also use the
The Forms Service
In the example above,
When the Forms Service template sees the
Linking to tasks doesn't prompt a user to log in. Securing the Forms Service article you use in your link will. Once logged in the user will be redirected to the task form.
As standard, with no extra configuration, interacting with tasks in this way will only work if the current user already has a task assigned to them. The current user might be the defined assignee for a task, or they might have claimed the task earlier on in the process. If the current user isn't already assigned to the task, the task form won't be displayed.
If the user has more than one task in the current instance assigned to them (if the workflow splits using a parallel gateway for example) then only the "first" task form will be displayed.
Candidates and Auto-Claim
Rather than sending out links to users who are already assigned tasks, you can also send links to users who are candidates for tasks. The link you send is the same.
So that candidate users can perform a task, the user task activity has to have auto-claiming enabled. To enable auto-claiming, open the "Advanced" tab of the user task activity you would like to be auto-claimed. Click on "Task listeners". From the default behaviour drop-down select "Allow Auto-Claim" and press the plus icon, then save.
Now when one of the eligible candidates clicks on the link the task will be automatically assigned to them and they'll be shown the task form, just like if they were an assignee.
If the current user isn't an eligible candidate, auto-claiming will fail and the task form won't be displayed.
If an eligible candidate follows a link to an auto-claimable task that has already been claimed by someone else, the task form won't be displayed.
When using auto-claim you might want to configure a timer to return the task to the list of candidates. If you don't the task could be auto-claimed by a user, who then doesn't complete it, preventing anyone else from claiming it.
Having all your services, processes and tasks carried out by registered, logged-in users has lots of advantages. However, having everyone register with your site is not always possible, and you might need users to be able to carry out tasks without being logged in.
If your task can be assigned to or claimed by your site's anonymous user, and the Forms Service article in your link is not secured, then the task can be carried out without logging in.