Cancel Process Design and Implementation

[bok-callout]For a walk-through the steps of the workflow and its configuration, go to Cancel Process Walk-Through.[/bok-callout]

Diagram

Step 1: Create a new Activiti project and/or Activiti diagram

The creation of a new Activiti project/diagram is explained in the section on Setting Up Your Workflow Design Workbench

Step 2: Change the Identifier, Name and Description of the Process

We refer to the section Designing Your First Workflow From Scratch, subsection “Change the Identifier, Name and Description of the Process” for an explanation on how  to change the identifier, name and description. For this case, name the workflow (e.g., the default would be “Cancel Process”) and give it an identifier (e.g., the default name would be “cancelProcess”). 

Step 3: Create a Pool and Lanes

We refer to the section Designing Your First Workflow From Scratch, subsection “Defining a Pool and Lanes” for an explanation on how  to change the identifier, name and description.

Pool >  Properties Tab > Process 

Property Value Description
id cancelProcess The Id of the workflow definition. This must be unique in Collibra
Name Cancel Process The default workflow label (description) in Collibra.
Namespace https://www.activiti.org/test  
Documentation

This process will be triggered when a process is cancelled. It will notify the configured roles of the cancellation.

This information is shown to the user when hovering over a workflow start button.

Step 4: Create a Start and End Event

Set the properties for the Start Event:

Start Event > Properties Tab > Main Config

Configuration Variables:

Id
Name
Type
Default
Required
Readable
Writeable
rolesToNotify Roles to notify (Comma separated) string Steward true false true

Step 5: Notify of cancel

 

Set the properties:

Service Task > Properties Tab > Main config

Property Value Description
Type Java Class Setting for delegate
Service Class com.collibra.dgc.core.workflow.activiti.delegate.MailSender Java Delegate used for sending mails from the workflow.

Fields:

Field name String value Expression Description
template workflow-cancelled   the name of the template that should be used to generate the mail.
mailToUsers    ${rolesToNotify} user expressions for users that should receive the action mail. See the EventBean

[bok-callout]Information about the MailSender delegate can be found here: <yourCollibraDomain>/docs/index.html > core > Package: com.collibra.dgc.core.workflow.activiti.delgate > Class: MailSender
[/bok-callout]

You have to login to comment.