Get the current Process instance id and compare it

647 views
Skip to first unread message

wkha...@gmail.com

unread,
Jan 30, 2016, 6:57:54 AM1/30/16
to camunda BPM users
Hi,

I am trying to make my first steps with camunda. I have read all the articles and googled the following question but nothing helped:

How can I read out the current process instance id and then compare it to one value in the database?

I am working on this for almost 2 days and I do not have any accurate solution. Can someone please help.

best regards,

waheed

Philipp Ossler

unread,
Feb 1, 2016, 2:20:22 AM2/1/16
to camunda BPM users
Hi Waheed,

the process instance id is generated when the instance is created. You can retrieve the process instance id from an execution, for example inside a Java Delegate [1]. When the transaction in which the process instance is started ends then the process instance is stored in the database.

Where do you want to retrieve the process instance id?
Do you want to compare the id with another process instance id or a different value? 

Greetings,
Philipp

Waheed Khan

unread,
Feb 1, 2016, 5:14:05 AM2/1/16
to camunda-...@googlegroups.com
Hi Philipp,

thank you very much for your answer. I want to stored it in the mySQL database. Now it is done! We stored it into the database and now can compare it with the current id to get data from the current user.

thanks again!

regards,

Waheed

--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/db4Dfepfg-I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/16d2575c-2914-4b5b-949a-84fba4eb747c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages