blob: 19d4f21ebc2297362b030fb5d868570235b62e70 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.config.demo.workflow;
import org.eclipse.osee.ats.workflow.flow.TeamWorkflowDefinition;
import org.eclipse.osee.ats.workflow.item.AtsStatePercentCompleteWeightDefaultWorkflowRule;
import org.eclipse.osee.ats.workflow.item.AtsWorkDefinitions;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.ui.skynet.results.XResultData;
/**
* @author Donald G. Dunne
*/
public class DemoTestWorkFlowDefinition extends TeamWorkflowDefinition {
public static String ID = "demo.test";
public DemoTestWorkFlowDefinition() {
super(ID, ID, TeamWorkflowDefinition.ID);
addWorkItem(AtsStatePercentCompleteWeightDefaultWorkflowRule.ID);
}
@Override
public void config(WriteType writeType, XResultData xResultData) throws OseeCoreException {
AtsWorkDefinitions.importWorkItemDefinitionsIntoDb(writeType, xResultData,
TeamWorkflowDefinition.getWorkPageDefinitionsForId(getId()));
AtsWorkDefinitions.importWorkItemDefinitionsIntoDb(writeType, xResultData, new DemoTestWorkFlowDefinition());
}
}