Store element id in database

Hi , I want to store the element ID in database and want to store the related information of the element id into database. Which then show upon click on the element as pop up. is there any possibility that two different diagrams has same element ID?

Thanking you in advance,
Waq

Hello @waqdev,

which tool are you using ? Do you mean data stores ?

Cheers,
Ricardo

Yes, I am using php and MySQL database.

We can only help you with things related to our bpmn.io sphere. We cannot help you setup external interactions with databases.

Cheers,
Ricardo

Thanks for reply, does the data-element ID is unique which is automatically assigned to Tasks or gateway? would this be possible that one of the task ID of Diagram A and Diagram B has similar Data-element ID?

Many Thanks,
Waq

1 Like

Thats My Question Too.
Is There Any One Who Knows The Answer Of @waqdev 's Question?

Thanks.

1 Like

Hi,

ID of each element is unique within a diagram’s scope. So combining with some sort of diagram key/identifier you should get unique composite key for an element.

Kind regards,
Vladimir

2 Likes

Thanks for the answer