001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * <a href="mailto:grenard@nuxeo.com">Guillaume Renard</a> 018 * 019 */ 020 021package org.nuxeo.ecm.platform.routing.core.io; 022 023import java.io.Serializable; 024import java.util.ArrayList; 025import java.util.List; 026import java.util.Map; 027 028/** 029 * @since 7.2 030 */ 031public class WorkflowRequest { 032 033 protected List<String> attachedDocumentIds = new ArrayList<String>(); 034 035 protected Map<String, Serializable> variables; 036 037 protected String workflowModelName; 038 039 public WorkflowRequest() { 040 super(); 041 } 042 043 /** 044 * @since 8.2 045 */ 046 public WorkflowRequest(String workflowModelName, List<String> attachedDocumentIds, 047 Map<String, Serializable> variables) { 048 super(); 049 this.attachedDocumentIds = attachedDocumentIds; 050 this.variables = variables; 051 this.workflowModelName = workflowModelName; 052 } 053 054 public List<String> getAttachedDocumentIds() { 055 return attachedDocumentIds; 056 } 057 058 public String getWorkflowModelName() { 059 return workflowModelName; 060 } 061 062 public Map<String, Serializable> getVariables() { 063 return variables; 064 } 065 066 public void setAttachedDocumentIds(List<String> attachedDocumentIds) { 067 this.attachedDocumentIds = attachedDocumentIds; 068 } 069 070 public void setWorkflowModelName(String workflowModelName) { 071 this.workflowModelName = workflowModelName; 072 } 073 074 public void setVariables(Map<String, Serializable> worflowVariables) { 075 this.variables = worflowVariables; 076 } 077 078}