I was often asked for a way to archive a workitem, especially as the last ‘step’ of a workflow.
<sequence> <participant ref="role-indexation" /> <participant ref="role-treatment" /> (...) <participant ref="archive" /> </sequence>
I just implemented this ‘FileArchivingParticipant’ and I’ll use it as an example of ‘custom participant’. I’ll post a link to this new doc tomorrow.
It’s configured that way in the file
<participant name="archive" class="openwfe.org.engine.impl.participants.FileArchivingParticipant" > <param> <param-name>archivalPath</param-name> <param-value>archive</param-value> </param> </participant>