Toggle menu

Getting Started with Workflow

The Workflow

Our process model ties our two forms together and sends an email.

Our First Process

It has the following elements.

ElementDescription
Start CandidatesThe users who are allowed to start our process - ie the visitors to our website
Start EventEvery process has a start event, usually a form submission
Start FormThe form that our user will submit to start the process
User TaskThe task carried out by our agent
User Task CandidatesThe group of users who will carry out the user tasks
User Task FormThe form our agent will fill in to complete the user task
Mail TaskThe mail task that will send a confirmation email to our start user when the task is complete
End EventThis ends the process execution when it is reached

Model Properties

When you first create or edit a model, without selecting any of the elements, the properties section beneath the work area displays the properties of the model itself.

Model Properties

PropertyDescription
Process IdentifierThe unique identifier of the process definition. This is generated automatically when you create your model
NameThe name of the process definition, displayed within the modeller.
NamespaceThis is how the model is organised in the modeller, it doesn't affect the process or how it is used
DescriptionThe description of the process definition, displayed in products like the Self Service template. This value can include form field values using the ## substitution method. 
CandidatesOnly the users (or user groups) selected here are able to start instances of this process. These will normally be logged in site users, which is useful so we can access details from their user profile, but can also be the anonymous/public user. If you want users to be able to track their requests in the Self Service and User Request templates you'll need some way to identify them, in which case it is best if they have to log in before they start a process

Start Event

Every model must have a start event. For our example, leave all of the properties as their defaults.

User Task

The user task assigns a task to one of our agents. In this example we can leave most of the properties blank, but you will always need to set the name, candidates and iCM form.

PropertyDescription
NameThis name will appear in the claimable task lists in templates like Self Service. You can include values from the form submission that started the process instance (or any other process variable). For this example, use Respond to query about ${form_QUERY}. See Process Variables for more information
CandidatesSelect the users or user groups you would like to be able to claim this task. This should be a group that represents "staff" members
iCM FormThis is the form that will be used to carry out the task. For this example, select the "Complete a simple process" form described in the previous step

Mail Task

Once our agent completes the user task, the process execution is passed to a mail task. In this example we're going to use elements from both form submissions to construct our email.

PropertyDescription
NameThe name of the task isn't visible in normal use, but can be useful if you need to debug any errors. For this example call it Mail Task
ToWe want to send the email to the original user who submitted the query. The user supplied their email address in a field called EMAIL, so we can access that email address using ${form_EMAIL}
FromAny "from" address you enter must be authorised and verified to be able to send emails from your domain. Leave this field blank to use the default set for your platform
SubjectThis is the subject line of the email. Just like the email address, we can use a value from the form submission. Enter Your query about ${form_QUERY}
HTMLThis will make up the body of the email. In this example we're going to include a value from the original form and a value from the agent's response.

<p>Hello ${form_NAME}</p>
<p>The response form our agent is: ${form_RESPONSE}</p>
<p>Thanks for your enquiry</p>

End Event

The end event stops the process execution when it's reached. End events end this branch of the process execution. Terminate events terminate the entire process execution, even if it has multiple branches.

As our example only has one line of execution, either can be used.

Save and Deploy

Save and deploy your workflow model. It will now be available as a process that can be selected in the Workflow start Action form field and be displayed on articles using the User Requests and Self Service templates.

Last modified on October 29, 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon