How can I access the workflow ID in BeginOnSave /

2019-09-04 11:43发布

问题:

I'm using PersistenceIOParticipant to write the workflow status to a custom db table. I need the workflow ID - any ideas how I can access it from within BeginOnSave?

回答1:

As far as I know the only way is to retreive it in a activity from the execution context and pass that to your service.