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

latest posts

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

MVP

Hi Wojtek,

would it be an option to simply switch the names of the form types, so that the Ids could be kept and only configurations need /reports would need to be changed. This way you wouldn't need to update the instances.

If this isn't an option there's no way around testing even if someone here would give you an answers. You would be doing this at your own risk anyway. :)

I would create a copy of the database and restore it in a test environment or create a similar case in the test environment with a new worklfow.

Best regards,
Daniel

Hi Community,

for the reason of proper premissions managment I need to change the form type for 500+ instances. Obviously I would like to avoid manual work.
Do you have ANY idea if the 'change form type' can be somehow automated? I need to change form type X to Y, no diferentiation whatsoever.
Maybe some SQL? Changing WFD_DTYPEID in WFElements and WFHistoryElements will be enough?
What do you think?

Thanks in advance.

Wojtek