Hi all
I have a custom workflow entity that accepts three lookup input parameters and returns one output parameter of type Money.
It is defined on an active process that's triggered on the creation of Invoice Product.
Our system generates bulk invoices (up to 30), and therefore ~40 Invoice Products can be created instantly.
With the result that the output from one instance of the workflow is carried into another giving incorrect results.
If I run the workflow manually again, it returns the correct result.
I have defined the IOrganisation Service in the Execute Method and pass it to sub routines (as opposed to class level var - as I received strange errors that way)
I believe this is a bug.
Is there a workaround?
Perhaps there is a way to allow the workflow to sleep for a random number of minutes? How can this be achieved?
Any solutions or suggestions would be greatly appreciated
*This post is locked for comments