| /******************************************************************************* |
| * 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 DemoCodeWorkFlowDefinition extends TeamWorkflowDefinition { |
| |
| public static String ID = "demo.code"; |
| |
| public DemoCodeWorkFlowDefinition() { |
| super(ID, 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 DemoCodeWorkFlowDefinition()); |
| } |
| |
| } |