| author | Rainer Pielmann | 2012-01-05 05:43:53 (EST) |
|---|---|---|
| committer | Stephan Born | 2012-04-24 04:17:07 (EDT) |
| commit | 95a802a4f6de9b95454725fee63124fcc3a49221 (patch) (side-by-side diff) | |
| tree | ef421be7227b2ba93df22e6cca937cf95705a7d5 | |
| parent | 0da47c0347d2de611ae59aa41adf7d5572688cdf (diff) | |
| download | org.eclipse.stardust.ide-95a802a4f6de9b95454725fee63124fcc3a49221.zip org.eclipse.stardust.ide-95a802a4f6de9b95454725fee63124fcc3a49221.tar.gz org.eclipse.stardust.ide-95a802a4f6de9b95454725fee63124fcc3a49221.tar.bz2 | |
Jira-ID: CRNT-22261 Add standard formula and configuration parameters needed in JavaScript default criticality formula upon creation of a new model
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@52517 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/wizards/NewWorkflowDiagramWizard.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/wizards/NewWorkflowDiagramWizard.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/wizards/NewWorkflowDiagramWizard.java index 6a591ce..7671d52 100644 --- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/wizards/NewWorkflowDiagramWizard.java +++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/wizards/NewWorkflowDiagramWizard.java @@ -396,27 +396,27 @@ public class NewWorkflowDiagramWizard extends Wizard implements INewWizard // CLow modelVariable = new ModelVariable("${CLow}", "0", "Initial criticality (Low)"); - context.createAttributeSet(modelVariable, 0); + context.createAttributeSet(modelVariable, 1); // CMed modelVariable = new ModelVariable("${CMed}", "0.33", "Initial criticality (Medium)"); - context.createAttributeSet(modelVariable, 1); + context.createAttributeSet(modelVariable, 2); // CHigh modelVariable = new ModelVariable("${CHigh}", "0.66", "Initial criticality (High)"); - context.createAttributeSet(modelVariable, 2); + context.createAttributeSet(modelVariable, 3); // MLow modelVariable = new ModelVariable("${MLow}", "10", "Multiple of target execution time (Low)"); - context.createAttributeSet(modelVariable, 3); + context.createAttributeSet(modelVariable, 4); // MMed modelVariable = new ModelVariable("${MMed}", "10", "Multiple of target execution time (Medium)"); - context.createAttributeSet(modelVariable, 4); + context.createAttributeSet(modelVariable, 5); // MHigh modelVariable = new ModelVariable("${MHigh}", "10", "Multiple of target execution time (High)"); - context.createAttributeSet(modelVariable, 5); + context.createAttributeSet(modelVariable, 6); //Default criticality formula String formula = @@ -443,7 +443,8 @@ public class NewWorkflowDiagramWizard extends Wizard implements INewWizard " Cp = ${CHigh};\n" + " Mp = ${MHigh};\n" + "}\n" + - "t = activityInstance.getAge() / 1000;\n"; + "t = activityInstance.getAge() / 1000;\n\n" + + "Cp + (1- Cp) * t/(Mp * T);\n"; AttributeUtil.setAttribute((IExtensibleElement) model, "ipp:criticalityFormula", "String", formula); } |

