Index: /Users/pteglia/Sites/mixer/trunk/acquia-drupal-1.2.13/sites/all/modules/userpoints_ubercart/uc_userpoints_award.module
===================================================================
--- uc_userpoints_award.module	(revision 316)
+++ uc_userpoints_award.module	(working copy)
@@ -100,7 +100,80 @@
 	return $actions;
 }
 
+/**
+ * Implementation of hook_ca_predicate
+ **/
+function uc_userpoints_award_ca_predicate() {
+	$predicates['uc_userpoints_default_award'] = array (
+  '#title' => t('Award points if order complete'),
+  '#description' => '',
+  '#class' => '',
+  '#status' => '1',
+  '#weight' => '0',
+  '#uid' => '0',
+  '#trigger' => 'uc_order_status_update',
+  '#conditions' => 
+  array (
+    '#operator' => 'AND',
+    '#conditions' => 
+    array (
+      0 => 
+      array (
+        '#operator' => 'AND',
+        '#conditions' => 
+        array (
+          0 => 
+          array (
+            '#name' => 'uc_order_status_condition',
+            '#title' => 'Check the order status',
+            '#argument_map' => 
+            array (
+              'order' => 'updated_order',
+            ),
+            '#settings' => 
+            array (
+              'negate' => 0,
+              'order_status' => 'completed',
+            ),
+          ),
+          1 => 
+          array (
+            '#name' => 'uc_order_status_condition',
+            '#title' => 'Check the order status',
+            '#argument_map' => 
+            array (
+              'order' => 'order',
+            ),
+            '#settings' => 
+            array (
+              'negate' => 1,
+              'order_status' => 'completed',
+            ),
+          ),
+        ),
+      ),
+    ),
+  ),
+  '#actions' => 
+  array (
+    0 => 
+    array (
+      '#name' => 'uc_userpoints_buyer_award_points',
+      '#title' => t('Award buyer points'),
+      '#argument_map' => 
+      array (
+        'order' => 'updated_order',
+      ),
+      '#settings' => 
+      array (
+      ),
+    ),
+  ),
+);
+return $predicates;
+}
 
+
 /* ************************************************************************* *
  *  Workflow-ng Action Callbacks and Forms                                   *
  * ************************************************************************* */
