blob: f5f5cddf21f190643d8483bd8e19ea5af8225189 [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 java.util.logging.Level;
import org.eclipse.osee.ats.config.demo.internal.OseeAtsConfigDemoActivator;
import org.eclipse.osee.ats.workdef.ReviewBlockType;
import org.eclipse.osee.ats.workdef.StateEventType;
import org.eclipse.osee.ats.workflow.item.AtsAddDecisionReviewRule;
import org.eclipse.osee.framework.logging.OseeLog;
/**
* @author Donald G. Dunne
*/
public class DemoAddDecisionReviewRule extends AtsAddDecisionReviewRule {
public static String NAME = "atsAddDecisionReview.test.addDecisionReview";
public DemoAddDecisionReviewRule(String forState, ReviewBlockType reviewBlockType, StateEventType stateEventType) {
super(NAME + "." + forState + "." + reviewBlockType.name() + "." + stateEventType,
NAME + "." + forState + "." + reviewBlockType.name() + "." + stateEventType);
setDescription("This is a rule created to test the Review rules.");
setDecisionParameterValue(this, DecisionParameter.title, "Auto-created Decision Review from ruleId: " + getName());
setDecisionParameterValue(this, DecisionParameter.reviewBlockingType, reviewBlockType.name());
setDecisionParameterValue(this, DecisionParameter.forState, forState);
setDecisionParameterValue(this, DecisionParameter.forEvent, stateEventType.name());
try {
setDecisionParameterValue(this, DecisionParameter.assignees, "<99999997>");
setDecisionParameterValue(this, DecisionParameter.options, "Completed;Completed;");
} catch (Exception ex) {
OseeLog.log(OseeAtsConfigDemoActivator.class, Level.SEVERE, ex);
}
}
}