You can’t have a fixed procedure produce a fixed result in a world where randomness or free will exists.
The Heisenberg’s uncertainty principle shows that you cannot know both a particle’s momentum and position at a given time. You can only measure a high probability for either of these.

Gödel’s Incompleteness Theorems tells us that no system can be both complete and consistent. You must choose; A system that is complete and inconsistent, or a system that is consistent and incomplete.
And a corollary to Gödel’s comes from the field of Systems Theory and points out that a fixed procedure will create variable results and a fixed result requires a variable procedure. You must choose – a fact very few business process managers are conscious of. Trying to implement a fixed procedure to obtain a fixed result is folly. Most often you would want a certain result – and hence you must allow for individual creativity and a loosely defined procedure. This is the basis for Adaptive Case Management.
Thinking that you can program a business like a machine will most probably lead to some interesting situations.
Realizing that you can’t have your cake and eat it too may just free up some mental stress.

If you want a software solution to go with it, learn 



