Processes
Process Designer

Your first process

11min
we're going to build a very basic process that will answer the following question "is it the weekend yet ?" hit create a process and let's start building ! as a first step let's rename our process by providing a good name for our process we ensure anyone can understand what it does thought process what do we need to do exactly? we need to find out if the current date is saturday or sunday sounds good, how should we do it? we should think about this process as a two part job, first we get the date and then we check if it's on a weekend and interpret the result ok, but we don't want to input the date manually, right? yes, we'll get the current date automatically so that we won't have to input it manually on every run and how can we do that? let's check the platform actions section first to see if we can find an action that can get the current date there seems to be a datetime folder so let's look over there for now today seems like a good fit, let's check the documentation page to learn how to use it now we know how the today action works, how do we proceed ? we'll declare an output variable called currentdate of type datetime datetime which will hold the current date provided by the today action after this we'll connect the action to start and stop and make sure we've got a valid flow by clicking the validate button and making sure no more errors show up when the process becomes valid, we'll hit run to see if the currentdate variable has the right value now we got the date how do we figure out if it's on a weekend ? the thought process should be similar we check the datetime folder again to see if anything fits our needs is weekend seems promising so let's check its documentation page now that we found the perfect action, lets use it in our process to implement the weekend check we'll declare another output variable called isweekend of type boolean boolean which will hold the logic value of is currentdate on a weekend ? after this, we chain the isweekend action to the today action and make sure our flow is valid now we're done, let's see how your first process runs now 😁 somehow i don't really like the true and false stuff, is there a way to make is show messages? it's a bit more complex but sure, let's make it show 'yes' instead of true and 'no' instead of false we'll declare a third output variable called message of type string string to store the message to convert the value of isweekend to a message we will use the following actions decisional ➜ to choose which message to map based on the value of isweekend map process data ➜ to map the right message to the message variable join ➜ to merge decisional branches let's build the flow now and make sure it's valid and there you have it, lets now run it to see how it works congratulations! you have created your first process flow in procesio !