on 07-25-2016 4:59 PM
Hi Experts,
I am doing NW BPM to collect the messages during the day and end the BPM at 10PM every day, I have done BPM design to collect the messages using this blog
I want to use the expression in Timer Configuration
Can you help me with the expression, i wanted to use expression like get the milliseconds between 10PM and the current time (BPM start time)
For example if the BPM starts at 10AM in the morning, i need to get the milliseconds between 10PM and 10AM and pass the milliseconds in the expression.
Regards,
Santhi.
Hi Santhi,
Try with this:
seconds-from-duration(subtract-dateTimes(dateTime(concat(substring(string(current-dateTime()),0,10),"T22:00:00.000+10:00")) , current-dateTime() )) * 1000
To test it quickly, change the bold part to a closer time (let's say 5 mins from the time of execution) and see if it works. You may need to change the +10:00 part to suit your timezone.
Cheers,
Sanjeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santhi,
You can use the in-built functions in BPM mapping to get the milliseconds value in the timer expression
for example in your scenario, you can use hours-from-dateTime function to get the total hours from the dateTime your BPM starts and your expected date time when you want to start the timer. this function will return you the hours, and then multiply this with the constant 3600000 to get the milliseconds
there are other date time functions that you can use, this is just an example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Santhi,
This timer is to run the BPM process.
Check of the mapping functions if you have any.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.