file content handling
[scpubgit/DKit.git] / lib / DX / Op / ProposeAction.pm
index e63eb40..9076fd3 100644 (file)
@@ -18,6 +18,7 @@ sub run {
   my ($self, $state) = @_;
   ($state, my %args) = $self->_expand_args($state, %{$self->_arg_map});
   my @vars = @args{sort keys %args};
+  return $state->backtrack unless @vars == grep $_->is_bound, @vars;
   my @deps = $state->action_dependencies(map $_->id, @vars);
   my $action = $self->builder->(map $state->resolve_value($_), @vars)
                     ->but(dependencies => \@deps);