anchor.diff:  
   == Working with deployments
   
  -Deployment Service provides convinient way to put business assets to an execution environment but there are cases that requires some additional management to make them available in right context. 
  +Deployment Service provides convinient way to put business assets to an execution environment but there are cases that requires some additional management to make them available in right context.
   
   *Activation and Deactivation of deployments*
   
   Imagine situation where there are number of processes already running of given deployment and then new version of these processes comes into the runtime environment.
  -With that administrator can decide that new instances of given process definition should be using new version only while already active instances should continue with the previous version. 
  +With that administrator can decide that new instances of given process definition should be using new version only while already active instances should continue with the previous version.
   
   To help with that deployment service has been equipped with following methods:
   
  
positive.code:     UserTaskInstanceDesc getTaskById(Long taskId);
  
      List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId, QueryFilter filter);
  	
      List<TaskSummary> getTasksAssignedAsBusinessAdministratorByStatus(String userId, List<Status> statuses, QueryFilter filter);
  
      List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, QueryFilter filter);
  	
      List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, QueryFilter filter);
  
      List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatus(String userId, List<Status> status, QueryFilter filter);
  	
      List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, List<Status> status, QueryFilter filter);
  	
      List<TaskSummary> getTasksAssignedAsPotentialOwnerByExpirationDateOptional(String userId, List<Status> status, Date from, QueryFilter filter);
  	
      List<TaskSummary> getTasksOwnedByExpirationDateOptional(String userId, List<Status> strStatuses, Date from, QueryFilter filter);
  
      List<TaskSummary> getTasksOwned(String userId, QueryFilter filter);
  
negative.code: [source,java]
  ----
  public class TestQueryParamBuilder implements QueryParamBuilder<ColumnFilter> {
  
      private Map<String, Object> parameters;
      private boolean built = false;
      public TestQueryParamBuilder(Map<String, Object> parameters) {
          this.parameters = parameters;
      }
  
      @Override
      public ColumnFilter build() {
          // return null if it was already invoked
          if (built) {
              return null;
          }
  
          String columnName = "processInstanceId";
  
          ColumnFilter filter = FilterFactory.OR(
                  FilterFactory.greaterOrEqualsTo((Long)parameters.get("min")),
                  FilterFactory.lowerOrEqualsTo((Long)parameters.get("max")));
          filter.setColumnId(columnName);
  
          built = true;
          return filter;
      }
  
  }
  ----
  
  