I am looking for a way to get the current history ID from a workflow step.
I am building a tool that will be part of a workflow. This tool will parse a VCF and save some bits to a database. We want to be able to get the ID of the history and save it to the database as well so we can link back to it when the job is complete. I don't see any easy way to pass the 'current' history to the command line tool using workflow wrapper attributes. I am looking at using blend4j as a way to get at the history but don't know if that is do-able or appropriate in this situation. I would think there would be some sort of ID that is passed in workflow steps, or a global value that is easy for a workflow step to access that will get the history we are running under.
Does anyone know how to get an ID of a workflow execution (history) while it is running?