This topic contains 1 reply, has 2 voices, and was last updated by Yevhen Shyshkin 8 years, 5 months ago.
- Topic
Hello to all!
I’m currently trying to configure Workflows.
I saw here this kind of configuration :
1234567891011121314151617181920workflows:phone_call:# ...transition_definitions:connected_definition: # Try to make call connected# Check that timeout is setconditions:@not_blank: [$call_timeout]# Set call_successfull = truepost_actions:- @assign_value: [$call_successfull, true]init_actions:- @increment_value: [$call_attempt]not_answered_definition: # Callee did not answer# Make sure that caller waited at least 60 secondsconditions: # call_timeout not empty and >= 60@and:- @not_blank: [$call_timeout]- @ge: [$call_timeout, 60]Let’s have a look on the last line:
123- @ge: [$call_timeout, 60]I guess the attribute $call_timeout has to be re-computed and updated each day, for each entity. This may probably need a daily cron.
Is there a simpler way to do that? Something that would look like :123- @ge: [$call_timeout, new \DateTime('now')->sub(new \DateInterval('P2M')); ]
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.