The following are few examples of workflows used in formsflow.
This bpmn diagram is intended to send an email notification to respective users. It uses email-template.dmn to configure the email properties.
BPMN
First, configure notify listener to the desired workflow step. This will invoke the notify listener and start the message event of email-notification bpmn.
The notification_email workflow connects with the email-template-example.dmn with the decision reference value email-template-example.
EmailAttributesListener is configured between the email template and email connector, which takes output data from the dmn template and transfers it to the email connector to send the mail.
BPMN
This diagram shows a simple approval process. Submit a form to invoke the process.
Add below listeners to inject the fields, capture the audit and transform camunda variables.
-
org.camunda.bpm.extension.hooks.listeners.BPMFormDataPipelineListener
-
org.camunda.bpm.extension.hooks.listeners.ApplicationStateListener
-
org.camunda.bpm.extension.hooks.listeners.FormBPMFilteredDataPipelineListener
After that exclusive gateway checks the condition and decides to approve/ reject the application
This bpmn diagram can be used for any state of approval process.
BPMN
This is a two-step approval process that involves three lanes including the client and reviewers in the process. After the client submits the form, the first step reviewer accepts/rejects the application with comments. If accepted, the application goes to the next step, and if rejected client needs to resubmit the form for approval. After the first step, the next level reviewer approves the application and the process is completed, if rejected, the client is notified to resubmit the form.
Refer this Background Check Robot and Usage.