--- workflow_ng.module-5.x-2.x-dev	2008-03-02 12:32:55.000000000 +0000
+++ workflow_ng.module	2008-04-10 13:42:33.000000000 +0100
@@ -247,6 +247,11 @@
       $arguments = _workflow_ng_process_arguments($event, $args);
       //evaluate the configurations
       workflow_ng_evaluate_configurations($configurations, $arguments, $log);
+      if (isset($arguments['result'])) {
+      	$result = $arguments['result'];
+      	unset($arguments['result']);
+      	return $result;
+      }
     }
 
     workflow_ng_show_log($log);
@@ -442,6 +447,8 @@
     $exec_args = workflow_ng_get_execution_arguments($element, $arguments, $log);
     if ($exec_args !== FALSE) {
       $result = call_user_func_array($element['#name'], $exec_args);
+      if (isset($result))
+      	$arguments['result'][] = $result;
 
       //Add newly added arguments by the action
       if (isset($result['#new arguments']) && $result['#new arguments']) {
