Use case
You can use the Service Bus Consumer activity along with the Service Bus Listener activity to provide a better user experience while the system performs heavy calculations in the background.
For example, you can use the Service Bus Consumer activity to send a "Your form was successfully submitted" message immediately after the user submits a form. To do this, place the Service Bus Consumer right after the form activity, and add a Service Bus Listener later on in the workflow to pick up the message from the Service Bus Consumer and resume the process.
Set up a workflow to perform an offline redirection process
This sample workflow provides a basic configuration to achieve this use case.
Screenshot
| Applies for Cora SeQuence V8.8 |
| What else??? Other requirements? |
Prerequisites
Make sure that you perform the following tasks, before you set up the workflow.
- Set up the Azure service bus namespace, which is a container for entities, such as queues and topics.
- Create a queue or topic, depending on your implementation requirement. -- Michael, is the WF for a queue or topic?
- Get the service bus Primary Connection String for your service bus namespace.
Procedure
| Step | Reference | |
|---|---|---|
| 1 | In the Azure portal, set up the Azure service bus namespace. | See Create a Service Bus namespace using the Azure portal. |
| 2 | Download the sample workflow, and import it to your Cora SeQuence. | |
| 3 | Go to Administration>Global Settings>Service Bus Connections, and create the service bus connection for the Azure Service bus that you set up previously. | See Service Bus Consumer activity. |
| 4 | Open the imported workflow, and set up the Service Bus Consumer and Service Bus Listener activities respectively. | See Service Bus Consumer activity. See Service Bus Listener activity. |