WELCOME TO THE COMMUNITY
find what you are looking for or ask a new question
Home > Forum > Latest posts

latest posts

MVP

Hi Radel,

I’m also not sure in which context this is necessary. If they leave the element they should get the message from Jack. This should apply also if the tab is closed.


The only situation I could think of, if the users leave the tab open in the background.
Then you could get into a situation where you forget to save.
In theory you could create some JavaScript to check whether an alert should be created after a specific time. I’m not sure that it would work in an inactive tab though. You could test it by setting a timeout to 3 minutes, execute the code and switch to other tabs so that the browser may decide to put these to sleep.

Best regards,
Daniel

In reply to: Daniel Krüger (Cosmo Consult)

Hi Andreia,

I also don't fully understand your request. Based on what I understand I can tell you the following:

- Timeouts are only created / deactivated when an path transition happens. Saving an workflow instance or saving a comment in the view mode won't create a new timeout.
- Even if you have a timeout checking this every few minutes, this will create a lot of versions.
- The "Last comment" is probably not what you assume it is. The last comment will always return the last entered comment regardless of the time /version in which the comment was provided. It will also return the a value if no comment was added in this version.

That's the reason why I created a business rule to return the "current comment". If non was added, it returns nothing.

I've also used the "send mail on new comment" as an example on how to use it:
https://daniels-notes.de/posts/2024/current-comment#example-and-test-cases

Best regards,
Daniel

HI Daniel,

I want to send a notification is someone enters a comment in that step.
I checked your post, so you are creating something like
- Technical FIeld that saves last comment
- Technical field that saves a new comment
- Use both fields as execution condition
- If different, an email is sent

I have some questions:
- Where are you configuring this action? Instance saving, etc? In the workflow or global actions?
- I don't want to send any notifications with emails that might happen due to path transition, only if in that step, someone enters a comment

Thank you

MVP
In reply to: Wojtek

You gave me an idea. I could just start new instances on the basis of the current ones copying all data and atachments and than delete the old. Thanks,

I didn't think of this option, but that's how ideas are born. :)


Depending on your version and whether you can execute SDKs you could download this:
2021
https://github.com/Daniel-Krueger/webcon_cclsactions/releases/tag/0.1
2022
https://github.com/Daniel-Krueger/webcon_cclsactions/releases/tag/0.2

It has an action to change the form type. Since I'm using the official SDK it is supported.

Then you could add a custom path and use mass actions.

Best regards,
Daniel