001/**
002 * Copyright 2005-2018 The Kuali Foundation
003 *
004 * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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 */
016package org.kuali.rice.krad.datadictionary;
017
018import org.kuali.rice.krad.datadictionary.parse.BeanTag;
019import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
020
021import java.io.Serializable;
022import java.util.ArrayList;
023import java.util.List;
024
025/**
026 * This element is used to define a set of workflowPropertyGroups, which are used to
027 * specify which document properties should be serialized during the document serialization
028 * process.
029 */
030@BeanTag(name = "workflowProperties")
031public class WorkflowProperties implements Serializable {
032    private static final long serialVersionUID = 1L;
033
034    protected List<WorkflowPropertyGroup> workflowPropertyGroups;
035
036    public WorkflowProperties() {
037        workflowPropertyGroups = new ArrayList<WorkflowPropertyGroup>();
038    }
039
040    /**
041     * Returns a list of workflow property groups, which are used to determine which properties should be serialized
042     * when generating
043     * routing XML
044     *
045     * @return a list of {@link WorkflowPropertyGroup} objects, in the order in which they were added
046     */
047    @BeanTagAttribute(name = "workflowPropertyGroups", type = BeanTagAttribute.AttributeType.LISTBEAN)
048    public List<WorkflowPropertyGroup> getWorkflowPropertyGroups() {
049        return this.workflowPropertyGroups;
050    }
051
052    /**
053     * This element is used to define a set of workflowPropertyGroups, which are used to
054     * specify which document properties should be serialized during the document serialization
055     * process.
056     */
057    public void setWorkflowPropertyGroups(List<WorkflowPropertyGroup> workflowPropertyGroups) {
058        this.workflowPropertyGroups = workflowPropertyGroups;
059    }
060
061}