SWF decider and worker agent library