Personally, I'm a very structured person. And as a rule, I also try to back up everything possible with data and facts in my private life. That helps me personally a lot to draw the right conclusions for actions.
Measuring your own mood is a metric to determine over time if something is wrong. Often people don't want to admit it to themselves, or judge the situation wrongly. Of course, the same measurement can be applied to entire teams. A team is only a strong team if the employees are satisfied and happy. Human mood pictures are an important asset, they should not only be treated anonymously but also primarily be in the data sovereignty of the teams (or at least the company). Of course, you can use external services for this, but you can also simply implement it yourself.
How about a self-built mood barometer for your team?
I have only simple requirements for it:
- Simple and accessible channel to receive mood survey
- Easy to configure trigger times
- Mood value may only be submitted once
- Anonymous results
I will again use a Camunda Cloud workflow engine for this use case. Why? Because I don't need to set up a cron job to poll the mood periodically, and because it allows me to easily extend the process.
The backend should take care of sending and accepting the mood images. As channel I use a simple email. The email should contain five links that reflect the current mood. I chose email because everybody has an e-mail account. Be it in a private or business environment. No one has to register for a new service or install software for it.
I would like to use the following approach:
- A new process instance starts daily.
- A worker of a service task generates a random id for each participant and sends an email.
- Links in the email point to a web application that sends an HTTP request to a backend service with the mood.
- The backend service persists the data and checks beforehand if the request has already been submitted for the generated Id.
Hardly worth mentioning, so simple and so valuable! A special feature is the start event. It is a timer event with the following configuration:
- Timer Definition Type:
- Timer Definition:
With this configuration we tell the workflow engine to start a new instance every day.
The worker should do two things:
- Generate Id
- Send email
I've implemented the following controller to manage the moods:
createRequest() a new record is created with a random Id and the associated team. Then the record is stored in a database.
The worker uses this controller to create the request. Afterwards the email is sent via an SMTP server. For the sake of simplicity, the name, the email address and the associated team are set as parameters.
The implementation can be further optimized, for example, by taking the user from an (internal) user database and passing only a
userId. In addition, an email service such as SendGrid or MailJet can be used for sending emails.
The backend is very simple, it accepts the request, checks if there is already a result for the id and if not it is persisted:
Here I don't want to go into too much detail, it's just for routing the request ;)
With a few simple steps a service is created that can track your team's mood. Since the orchestrating component is a process, you can of course add more steps, or customize the flow to send an email only on certain days.
And now: relax! :)