Skip to content

Latest commit

 

History

History
73 lines (42 loc) · 2.67 KB

File metadata and controls

73 lines (42 loc) · 2.67 KB

Use Case Example

Workflow Example

Workflow Screenshot

Download Workflow

OSGi Configuration Files

The component configuration for this workflow can be found in the config folder

Form Definition

There are two custom fields which are key to this example, Company Name and Annual Turnover. The former is used when creating the folder for the document uploads and the latter is used by a conditional node (Groovy script) to determine which of the Sales team will work on the prospect.

Company Name field Annual Turnover field

Workflow Definition

This is the Groovy script which uses the Annual Turnover. The value of this variable was extracted from the form.

Annual Turnover condition]

The notification template uses all the fields extracted from the form to construct the notification and emails. As the variables have been added to the workflowContext then they can be used like any other field available to the Freemarker template.

Notification template

Checking the Process Uploads outcome

The Check Outcome condition node uses the DDM Form Action Outcome Evaluator to determine what action to take depending on whether the uploads were processed successfully, i.e. approve the application or report the issue to an administrator.

Prospect above 100,000

The following shows the example of the use case where the annual turnover is above 1000,000

Form submission

Notification

Email

The following shows how the Company Name was used to create the folders and the fact the DDM Form Upload Processor has moved the appropriate document into the relevant folder.

Uploads folder

Upload

Prospect below 100,000

The following shows the example of the use case where the annual turnover is below 1000,000

Form submission

Notification

Email

Update Custom Fields

This section of the workflow shows how a fork / join can be used to complete several steps in parallel.

There are three instances of the Custom Field Updater, e.g. account, organisation and user. Each of these instances have their own configuration based on their unique workflow:node:action identifier. The configuration is such that the same type of extension can handle all three type of entity.