cancel
Showing results for 
Search instead for 
Did you mean: 

ExecutionEntity.revision property

shweta_tiwari
Champ in-the-making
Champ in-the-making
Hi,

Could you please provide me the details of what does ExecutionEntity.revision property signifies? While running my workflow i noticed that its value for each step in a workflow corresponds to number at which that step is in workflow. So for example if we take workflow as follows:

start -> Step A  - > Step B -> Step C -> end

The ExecutionEntity.getRevision() gives value as 1 for Step A , 2 for Step B and 3 for Step C.

So could we use it as an identifier of the step number in the linear  workflow , is it directly related to that or has some other significance too?

Thanks,
Shweta
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Revision is internal is and is not related to your process.

It is used for optimistic locking: each transaction will try to increase it, and fail when another one has increased it.