sequence Id generation

297 views
Skip to first unread message

prasanthi

unread,
Oct 9, 2013, 10:44:31 AM10/9/13
to suppor...@runmyprocess.com
Hi,

Is it possible to generate sequence id in RMP
while pushing data into collection everytime?

We tried using uuid but it is generating some lengthy alphanumeric code
instead of numeric sequence number?

Thanks

Dimitri MELCHIOR Pro

unread,
Oct 9, 2013, 10:54:03 AM10/9/13
to RunMyProcess Support Forum
Inject it into your object in case you are in Javascript :

my_object.entry_id = JSON.stringify(Math.random());

Write that if you are in freemarker :

<#assign my_object>{"..............,"entry_id":"${timestamp()}"}</#assign>

Best regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
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/6313769e-4a24-43dc-8aea-2355264d18c9%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

pepsi...@gmail.com

unread,
Oct 10, 2013, 3:50:14 PM10/10/13
to suppor...@runmyprocess.com
On Wednesday, October 9, 2013 10:54:03 AM UTC-4, Dimitri Melchior wrote:
> Inject it into your object in case you are in Javascript :
>
>
>
> my_object.entry_id = JSON.stringify(Math.random());
>
>
>
> Write that if you are in freemarker :
>
>
>
> <#assign my_object>{"..............,"entry_id":"${timestamp()}"}</#assign>
>
>
> Best regards.
>
>
>
>
> --
> Dimitri MELCHIOR
>
>
>
>
> PreSales Consultant
> Contact: dmel...@runmyprocess.com
>
>
> Tel: +331 75 77 51 78
> Mobile : +336 52 70 89 82
> Website: Fujitsu RunMyProcess
>
>
>
>      
>
>
>
>
>
>
>
> Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace
>
>
>
>
>
>
> Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
>
> Be environmentally friendly: do not print this email unless it is entirely necessary.
>
>
>
>
>
> On Wed, Oct 9, 2013 at 4:44 PM, prasanthi <pepsi...@gmail.com> wrote:
>
> Hi,
>
>
>
> Is it possible to generate sequence id in RMP
>
> while pushing data into collection everytime?
>
>
>
> We tried using uuid but it is generating some lengthy alphanumeric code
>
> instead of numeric sequence number?
>
>
>
>
>
>
>
> Thanks
>
>
>
> --
>
> 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/6313769e-4a24-43dc-8aea-2355264d18c9%40runmyprocess.com.
>
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

Using math.random() is generating a random number but not sequence number.

Requirement: Id should be Sequence number(Example: 100, 101)
On submit the sequence number should be generated.

For testing, we tried with text field widget with variable and label as ID.

Gareth Thiveux

unread,
Oct 11, 2013, 8:45:10 AM10/11/13
to suppor...@runmyprocess.com
Hi,

You can use next_value(string) freemarker function on process side.

${next_value("any_string")} will return an incremented value each time you trigger the process this function is in.


Regards,

Pre-Sales Consultant / Consultant Avant-Vente
 Fujitsu RunMyProcess
22 rue Chauchat, 75009 Paris - France (GMT+1)

     


Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


2013/10/10 <pepsi...@gmail.com>
Reply all
Reply to author
Forward
0 new messages