I have a need where i need to add and delete some data in a separate database when a workflow starts. I implemented the PersistenceIOParticipant class to add an item when workflow is saved. Now i need some event to tell me when it gets deleted.
Any views on how this can be acheived ?
You can implement a tracking participant. The tracking participant will receive lots of tracking records. The one you care about is the WorkflowInstanceRecord. You will get a WorkflowInstanceRecord with State=”Deleted” and then you can delete your data.