SenseNet / sn-workflow

Workflow component for the sensenet platform, based on Windows Workflow Foundation 4.5
GNU General Public License v2.0
3 stars 2 forks source link

Id should be Serialized in WFContent and used instead of Path #20

Open pietervanh opened 4 years ago

pietervanh commented 4 years ago

https://github.com/SenseNet/sn-workflow/blob/e2b963c528c17f02ac31835b129b9a068ebf2f61/src/Workflow/WfContent.cs#L24

WFContent serialized field = path. But in fact ID is more static then path. For example WFContent referencing an user but the user has been moved to a different path. In that case when a flow wakes up it's going to abort. But if it would have used ID then things would have continued on, cause ID hasn't changed only the path.