1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*******************************************************************************
* 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.artifact.ReviewSMArtifact.ReviewBlockType;
import org.eclipse.osee.ats.config.demo.internal.OseeAtsConfigDemoActivator;
import org.eclipse.osee.ats.workflow.item.AtsAddDecisionReviewRule;
import org.eclipse.osee.ats.workflow.item.StateEventType;
import org.eclipse.osee.framework.logging.OseeLog;
/**
* @author Donald G. Dunne
*/
public class DemoAddDecisionReviewRule extends AtsAddDecisionReviewRule {
public static String ID = "atsAddDecisionReview.test.addDecisionReview";
public DemoAddDecisionReviewRule(String forState, ReviewBlockType reviewBlockType, StateEventType stateEventType) {
super(ID + "." + forState + "." + reviewBlockType.name() + "." + stateEventType,
ID + "." + 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: " + getId());
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);
}
}
}
|