Freemarker Numbers

181 views
Skip to first unread message

sagar....@flowian.com

unread,
Nov 29, 2014, 4:13:05 AM11/29/14
to suppor...@runmyprocess.com
Hi Team,

I am trying to store a current date into Freemarker variable using "${get_time("${now()}")}".

Which is working fine.

But the problem is that this function returns only the initial 10 digits to me instead of the whole number.

I do not understand why this happens. Can anyone help me..

Regards,
Sagar

Shobhit Tripathi

unread,
Nov 29, 2014, 4:38:00 AM11/29/14
to suppor...@runmyprocess.com
Hi Sagar,

As you are trying with get_time which transform a date into a timestamp.

To get current date in freemarker use "${now()}".

In order to change the date format you can use ${now("MM-dd-yyyy")}.

Thanks & Regards,
Shobhit


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d0cf4783-e09f-4f2b-87c2-7333e831bab1%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks & Regards,
Shobhit
Fujitsu- RunMyProcess

sagar....@flowian.com

unread,
Nov 29, 2014, 4:57:39 AM11/29/14
to suppor...@runmyprocess.com
Hi Shobit,

As per your suggestion "${now}" will return a string of current date.

But I want a timestamp at that current instance of time. So that I can calculate the time taken by particular activity.

Also can we set start time in the input variable of a task as well as end time in the output variables of that particular task so that I can calculate the time taken by task to complete.

Regards,
Sagar
Message has been deleted

Shobhit Tripathi

unread,
Nov 29, 2014, 5:33:58 AM11/29/14
to suppor...@runmyprocess.com
Hi Sagar,

Could you please give me some information about your requirement. So that I can give you the specific solution.

You can also use "timestamp" which returns the UNIX timing in Second or Millisecond.

Example: ${timestamp("MILLISEC")}


Best Regards,
Shobhit


Regards,
Sagar

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

sagar....@flowian.com

unread,
Nov 29, 2014, 5:40:33 AM11/29/14
to suppor...@runmyprocess.com
Hi Shobit,

Its working now... Thanks a Lot......

And about my requirement...

I want to calculate the time taken by particular employee if the manual task is assign to him. So thats why I have taken starttime which will record the time when the activity starts and the end time when that activity ends.

My question was can we define the start time in the Input variable of task in process and the end time in the output variable of the task in the process.

and after the process ends we can calculate the total time by substracting endtime from start time.

Regards,
Sagar
Reply all
Reply to author
Forward
0 new messages