Make a process singleton

I have this case where the process must be fired when a specific CDT is created but only once.

Is there an easy way to make sure of that?

I though of setting up through the start node some kind of expression to be fired when a certain query returns a count higher than 0 or anything alike. That doesn't seem possible and the other problem is it seems I can't enforce the creation of the process only once at all. Lets say in my case two CDT are created at "the same time" I'll end up for sure with two process threads?

Or perhaps I'm approaching my problem the wrong way.

If you have any ideas please share, thanks!

  Discussion posts and replies are publicly visible

Parents
  • Worst case we can adapt the solution so that the process responsible of creating the CDT triggers the other process.

    But what "gateway" might I provide to make sure the process is started only once? Let's say this other process (sub process node) creates a task at first, I could always check if the task already exists and if it does don't start it.

    But what will happen if 2 users at the same time does the same operation I wonder? I think there's still a risk of having more than one instance.
Reply
  • Worst case we can adapt the solution so that the process responsible of creating the CDT triggers the other process.

    But what "gateway" might I provide to make sure the process is started only once? Let's say this other process (sub process node) creates a task at first, I could always check if the task already exists and if it does don't start it.

    But what will happen if 2 users at the same time does the same operation I wonder? I think there's still a risk of having more than one instance.
Children
No Data