Asynchronous BPM

Hello,

I’m attempting to generate serial numbers at the time a job is released through a Method Directive BPM. I’ve been able to accomplish this in a custom code widget but the process can be time consuming if the production quantity is very large. Is there a way to get this to run asynchronously so that the user doesn’t have to wait on this process to finish after releasing a job. I’ve changed the option from synchronous to asynchronous but then it seems like the BPM doesn’t fire at all. Any suggestions?

In pre processing do a condition that the update need to meet like released had been changed from false to true and serial numbers don’t exist for this job, then the action is enable post processing directive.

Then in post processing the condition is This directive has been enabled from the pre processing directive.