Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
10 replies
Answers
2 answers
Subscribers
11 subscribers
Views
9578 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Just how unique are the ppids generated by Appian? At what point would Appian st
james.franklin
over 10 years ago
Just how unique are the ppids generated by Appian? At what point would Appian start recycling previously used ids? Obviously Appian wouldn't try to use an active id but there must be a point at which the ids run out.
Thanks...
OriginalPostID-132084
OriginalPostID-132084
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 10 years ago
AFAIK process IDs are be reused as soon as the process is deleted. So why do you ask? Do you think about using the ID for some sort of integration to another system? In cases I need to identify a process I create a PV and put a UUID in it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
james.franklin
over 10 years ago
Got it. So the caveat being, the ID is unique within the current live process. So effectively there is a pool of IDs available to the system which are perpetually recycled.
The UUID option looks a little excessive but well worth a look since this would clearly render a unique id.
Thanks, J
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Owen Parrish
Appian Employee
over 10 years ago
Process IDs are not reused. Even when a process is deleted.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
siddharthg521
over 10 years ago
Hi Owen
It happened with me as well, when the process id in the environment started repeating occasionally.
We were storing instance Id in the database for some business logic on process instance. However as soon as process instance Id started repeating, the table has duplicate ids which was incorrect as we were under the impression that whatsoever Appian will generate unique process instance ids in all cases.
Any thoughts on this ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
Eduardo Fuentes
Appian Employee
over 10 years ago
Since in your scenario you were manually storing the process id's in the DB there is a big possibility of a problem in your logic. Since the DB is outside Appian and you're inserting them using a smart service if there's an error in your logic, or someone restarted the node or the node wasn't configured properly there can be inserts that you were not expecting. For this particular scenarios is the responsibility of the developers of your team to debug further; in terms of Appian's architecture process IDs are not re-used.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
On my system there are 3 exec engines. The process IDs started at about 1 and 268.435.000 and 536.871.000. So what happen when the IDs of the first exec engine reach the number range of the second? I know that this is a very big range and a system would need to start new process on a high frequency for many years. But from my view as a computer scientist this is not something I would rely on.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
james.franklin
over 10 years ago
Thanks for the clarity Owen and Eduardo and for your input Stefan.
In which case I guess you have to be careful when storing to an external system as clearly there is a risk of data replication if incorrectly handled. Also would the type need to be set as a bigint when in SQL? Or would standard int be sufficient when looking at long term storage of process data? When considering your answer we do have a high throughput of transactions in our system which is now four years old running in 8 exec engines. I am sure there are bigger systems out there amongst the customer base so perhaps there is a better use case to draw upon.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
I'd say bigint would work better.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
joanneh
over 7 years ago
in reply to
james.franklin
So do you mean After the process is completed and archived , the processID would be released back the pool and probably be reused again?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
Eliot Gerson
Appian Employee
over 7 years ago
in reply to
joanneh
As Eduardo and Owen stated, process ids are never reused.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel