How process automation works: a Linx perspective
Tags: backendautomation, devtools, development, processautomation
Published: 2020-09-09 13:09:17

---
title: How process automation works: a Linx perspective
published: true
date: 2020-06-10 12:04:51 UTC
tags: BackendAutomation,DevTools,Development,ProcessAutomation
canonical_url: https://linx.software/how-process-automation-works-a-linx-perspective/
---

A key part of digital transformation is process automation. Greater efficiencies in resources, time and cost can be achieved when business processes are automated.

Do you want to automate your business processes with [Linx](https://linx.software), but you don’t know how it all works? 

## **How to build an automated process with Linx**

Let’s connect the dots by starting with your desired end-result and working our way back from there. For now, let’s keep it simple and settle for _an automated process flow_ as your desired end-result. 

_You may ask:_

**To have an automated process flow, _what do I need?_**  
You need a running Service event that will execute your process flow at specific times or under specific conditions.

**What is a service event?**  
The [services available in Linx](https://linx.software/automation-trigger-types/) include _Timer_, _Cron_, _DirectoryWatch_, _MSMQService_, _RabbitMQService_, _RESTHost_, _SimpleRESTHost_ and _SOAPWebService_. Each service can be configured to trigger an associated service event when specific conditions are met.   
  
Let’s take the _Timer_ service as an example: you can configure it to trigger the _TimerEvent_ at for example 7 am every weekday. When the clock strikes 7 am, the _TimerEvent_ will trigger, and execute your process flow, which could, for example, involve the retrieval of the previous day’s sales records from a database, writing them to a CSV file and emailing it to the regional sales managers. In this context, your process flow is essentially an ‘event handler’.

## **Host your solution on Linx Server**

**_Ok great, but before we look at the details of the process flow as the event handler, first tell me this:  what must I do to have a running Service event that will execute my process flow when I want it to?_**  
You must start your Service event, but for that to be possible you need a Solution that has been deployed to Linx Server that contains a Service, which in turn contains your Service event. In other words, you need a Service and service event, inside a Solution that is running on Linx Server.

Once the Solution that contains your Service and service event has been deployed to Linx Server, you can start your Service event on Linx Server.

**_What must I do to have a deployed Solution on Linx Server that contains a Service event that will execute my process flow?_**  
Short answer: you must design a Solution, which is an application that contains all of your programming logic, including the relevant Service with its configured properties, and the process flow that will ‘handle’ the service event when it is triggered.

**_Ok, but where do I design this Solution?_**  
You design solutions in Linx Designer. From there you can deploy your solution to Linx Server. The Linx application consists of Linx Server and Linx Designer.

## **Create your solution in Linx Designer**

**_Ok, so I use Linx Designer to design my Solution that I will then deploy to Linx Server… but what goes into designing a Solution?_**  
Well, remember your desired end result? You want an automated process flow. The automated process flow requires a Service event to be triggered and it needs an event handler (all the functions that drive your process flow) to execute when the Service event is triggered. That is essentially what you have to include in your Solution design.

**_Let’s take it one step at a time … the Service event: how do I add this to my Solution?_**  
Services are contained in Plugins from where they can be added to your Solution. Ok, so your next question is probably going to be: where do these Plugins come from and how do I access them so that I can add my Service to my Solution?   
  
Linx comes packaged with numerous [Plugins](https://linx.software/developer-plugins/) that are available to be added to any Solution. Adding a Plugin to your Solution is as simple as clicking an Add button. Plugins can contain Services, as well as Functions and Types.   
  
Take the Timer service as an example: to add the Timer service to your Solution, first locate the associated Plugin, which is the Utilities plugin, then drag and drop the Timer service from the Utilities plugin onto your design canvas to have it included in your Solution.   
  
Before you ask… the Timer service must be configured by setting specific properties that provide an indication of when the service event must execute. (As we go along, keep your desired end result in mind: automatic execution of your process flow at the times you want.)

**_Ok so now I know how to set up my Service, which means I know how to get my Solution’s Service event to execute at the right times. How do I get my Solution to know what to execute though? Is that the Process you mentioned earlier?_**  
Yes!

**_How do I add a Process?_**  
Easy. When you create a Solution in Linx Designer, a Process is created by default. You can use this Process, just rename it if required. You are also able to add additional processes, by adding them from the toolbar.

**_Ok cool, adding a Process is a no-brainer. It’s more about what is included in the Process that is important, right?_**  
That’s correct. What makes a process work is what you add to it. You can add Functions and Types to a Process.

**_Where do these Functions and Types come from?_**  
Hey, you should know this by now! Functions and Types are contained in Plugins, just like Services are contained in Plugins.

**_So similar to adding a Service by first adding a relevant Plugin that contains my required Service, I have to add a Plugin that contains my required Function or Type?_**  
Yes.

**_And after I have added the required Plugin, I drag and drop the Function or Type from the Plugin onto the design canvas to have it included in my Solution?_**  
Yes… make sure you first select the required Process to which you want to add your Function or Type by clicking on the Process in the Solution Explorer, and then drag and drop the Function or Type onto the design canvas.

**_Ah, ok I get you. So let’s say I added a Function to my process, what else do I need to do?_**  
Just like with setting up a Service, you have to set the relevant properties associated with your Function, so that your Function will execute correctly.

**_Ok, so after I have designed my Process to reflect my process flow requirements, what do I do next?_**  
Three things: firstly, you have to make the connection between your Service and your Process, so that when your Service event is triggered, it not only knows when to trigger but also what to execute.

**_That sounds complicated…_**  
Not at all! You simply select your Service event by clicking on it in the Solution Explorer section, then you drag and drop your Process from the Solution Explorer section onto the design canvas, which then links your process to your Service event. Voila!

**_Ok, so how do I know that my Solution will actually work?_**  
That’s the second thing you still have to do: [debug your Process,](https://linx.software/docs/getstarted/foundational/linxdesigner/debugtool/#gsc.tab=0) so that you can either see what is failing in your process design and setup, or you can confirm the successful execution of it. If your Process is failing, take note of the debug output values, and go back to your Process to fix the problems. Then debug again, until everything is working as expected.

**_Let me guess what the last step is… I can now deploy my Solution to Linx Server, right?_**  
Yes.

To close off, let’s go back to where the discussion started: after your Solution is deployed to Linx Server, what do you have to do next?  
  
**_I have to start my Service event to finalise the implementation of my automated process flow._**  
Well done!

- [Share on Twitter](#)
- [Share on LinkedIn](#)
- [Share on Email](mailto:?subject=How%20process%20automation%20works%3A%20a%20Linx%20perspective&body=I%27ve%20found%20an%20excellent%20article%20on%20%7Bpage_url%7D%20which%20may%20interest%20you.)

The post [How process automation works: a Linx perspective](https://linx.software/how-process-automation-works-a-linx-perspective/) appeared first on [Linx](https://linx.software).