My requirement here is to create a custom workflow which will be triggered from a custom event.
It has no link with any standard business process.
From custom UI user will request for approval. An entry will be created in Z table and custom workflow will be triggered for approval/rejection.
Upon approval I want same entry in Z table to be updated with an unique number.
Could you please let me know the steps in creating custom event, custom workflow and how to link them