Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By hmxDavid
#814307
Hi, I would like to ask if the Intermediate Timer Event in 3.1 community works? Or do I need an Enterprise Edition?

Next is, is it possible to have variable dependent in Wait For or Wait until specified date/time properties of the Intermediate Timer Event.

Thanks
User avatar
By amosbatto
#814324
Intermediate Timer Event work in version 3.1 community. Remember that you have to execute the timereventcron.php script at least twice in order for it to work. The first time it is executed, it will set the time when the timer should be executed in the case. The second time it should execute the timer if the time has been exceeded in the timer. If you have a discrepancy in the time zones between the clock on your server and your time_zone setting in php.ini, then you might have to wait a long time before it properly executes.
hmxDavid wrote:Next is, is it possible to have variable dependent in Wait For or Wait until specified date/time properties of the Intermediate Timer Event.
You can create a looparound that periodically executes an Intermediate Timer Event and an exclusive gateway which has conditions to check whether the datetime in a variable has passed or not. If the datetime has been passed, then it continues the rest of the process. Otherwise, it keeps looping.
The process would look something like this:
PauseTillDateProcessWithLooparound.png
PauseTillDateProcessWithLooparound.png (13.36 KiB) Viewed 2438 times
And the routing rules in the exclusive gateway would be something like this:
pauseTillDateRoutingRules.png
pauseTillDateRoutingRules.png (31.18 KiB) Viewed 2438 times
The variable @@pauseTillDate could be set by a datetime field in a Dynaform or by a trigger in "Task 2". Alternatively, you add a script task to the process that is periodically executed by the looparound that sets the @@pauseTillDate variable. If setting this in a trigger, the format of the @@pauseTillDate variable needs to be in "YYYY-MM-DD HH:MM:SS" format, like "2012-04-24 23:59:59", which is the format of datetime fields.
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]