public class IlrRuleFlowHelper
extends java.lang.Object
| Constructor and Description |
|---|
IlrRuleFlowHelper() |
| Modifier and Type | Method and Description |
|---|---|
static IlrFunctionTask |
createFunctionTask()
Deprecated.
|
static IlrElement |
createInstance(org.eclipse.emf.ecore.EClass type)
Creates a model element of the given type.
|
static IlrRuleFlow |
createRuleFlow()
Creates a not initialized rule flow.
|
static IlrRuleFlow |
createRuleFlow(boolean createDefinition,
IlrResourceElement container,
java.lang.String name,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
static IlrRuleFlow |
createRuleFlow(boolean createDefinition,
org.eclipse.core.resources.IResource resource,
java.lang.String name,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a rule flow with or without associted resource.
|
static IlrRuleTask |
createRuleTask()
Deprecated.
|
static IlrRuleFlow |
createSubflow(IlrRuleFlow ruleflow,
boolean createDefinition,
java.lang.String name)
Deprecated.
|
static java.lang.String |
findNewName(IlrElement element,
java.lang.String newName)
Deprecated.
|
static IlrAlgorithmKind |
getAlgorithm(IlrRuleTask ruleTask)
Deprecated.
|
static java.util.Collection |
getAllRulesFromTask(IlrRuleTask ruleTask)
Deprecated.
|
static java.util.Iterator |
getAllSubTasks(IlrRuleFlow ruleFlow)
Deprecated.
|
static java.lang.String |
getDefaultName(IlrRuleFlow ruleflow)
Deprecated.
|
static IlrResourceElement |
getElementContainer(IlrRuleFlow ruleflow)
Returns the parent element containing the rule flow.
|
static org.eclipse.emf.ecore.EObject |
getExecutableRulePackage(IlrTask task)
Deprecated.
|
static IlrExitCriteriaKind |
getExitCriteria(IlrRuleTask ruleTask)
Deprecated.
|
static java.util.Collection |
getMainRuleFlows(IlrRuleProject ruleProject)
Get the main ruleflow(s) of a rule project.
|
static IlrRuleFlow |
getRootTask(IlrTask task)
Deprecated.
|
static java.util.Collection |
getRuleFlows(IlrRuleProject ruleProject)
Get the all the ruleflow(s) of a rule project.
|
static IlrOrderingKind |
getRuleOrdering(IlrRuleTask ruleTask)
Deprecated.
|
static java.util.Set<java.lang.String> |
getSubflows(IlrRuleFlow ruleflow)
Returns the list of rule flow referenced in this given ruleflow.
|
static java.lang.String |
getTaskFinalActions(java.lang.Object task)
Deprecated.
|
static java.lang.String |
getTaskInitialActions(java.lang.Object task)
Deprecated.
|
static java.lang.String |
getTasksetCode(IlrTask task)
Deprecated.
|
static java.lang.String |
getXTaskExecutionName(IlrTask xtask)
Deprecated.
|
static boolean |
isScopeElement(IlrModelElement element)
Tells whther the given element is a scope element or not.
|
static void |
setDefaultCategory(IlrRuleFlow ruleflow) |
@Deprecated public static IlrRuleTask createRuleTask()
@Deprecated public static IlrFunctionTask createFunctionTask()
@Deprecated public static IlrRuleFlow createRuleFlow(boolean createDefinition, IlrResourceElement container, java.lang.String name, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptioncreateDefinition - container - name - monitor - public static IlrRuleFlow createRuleFlow(boolean createDefinition, org.eclipse.core.resources.IResource resource, java.lang.String name, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IlrRFModelis created
and a resource is associated.org.eclipse.core.runtime.CoreException - when the EMF model can't create the rule flow element.createDefinition - inidicates wether or not it is required to create the
IlrRFModeland the resource.resource - the resource that will contain the ruleflow. It is mandatory to
create the definition.name - the name of the rule flow. It is mandatory to create the
resource if the createDefinition parameter is set to true.monitor - the progress monitor to let the user be aware of the progression
of the task. This is not mandatory to create teh rule flow, null
is allowed.public static IlrResourceElement getElementContainer(IlrRuleFlow ruleflow)
ruleflow - the rule flow to investigate.public static void setDefaultCategory(IlrRuleFlow ruleflow)
ruleflow - @Deprecated public static IlrRuleFlow createSubflow(IlrRuleFlow ruleflow, boolean createDefinition, java.lang.String name) throws org.eclipse.core.runtime.CoreException
IlrRFModel) and the
resource.org.eclipse.core.runtime.CoreException - when the EMF model can't create the rule flow.ruleflow - the rule flow containing the subflow.createDefinition - inidicates whether or not it is required to create the
IlrRFModel and the resource.name - the name to give to the subflow. The name is mandatory as it ispublic static IlrRuleFlow createRuleFlow()
@Deprecated public static java.lang.String findNewName(IlrElement element, java.lang.String newName)
element - the element to renamed, either a ruleflow or a task.newName - a proposition of new name to check for validity.public static java.util.Collection getMainRuleFlows(IlrRuleProject ruleProject)
ruleProject - a rule projectIlrRuleFlowwith the main flow property set
to true.public static java.util.Collection getRuleFlows(IlrRuleProject ruleProject)
ruleProject - a rule projectIlrRuleFlow.@Deprecated public static java.util.Iterator getAllSubTasks(IlrRuleFlow ruleFlow)
ruleFlow - the rule flow to investigate.public static java.util.Set<java.lang.String> getSubflows(IlrRuleFlow ruleflow)
ruleflow - the rule flow containing reference to other rule flows.IlrRuleFlow may return an empty list but
will never return null.@Deprecated public static java.lang.String getTasksetCode(IlrTask task)
@Deprecated public static java.lang.String getXTaskExecutionName(IlrTask xtask)
@Deprecated public static java.util.Collection getAllRulesFromTask(IlrRuleTask ruleTask)
ruleTask - the rule task to investigate.IlrRuleor
IlrRulePackageobjects. The collection is not a copy, any
modification will change the rule task.public static boolean isScopeElement(IlrModelElement element)
IlrScopeElement:
IlrRuleand IlrRulePackage
objects.@Deprecated public static org.eclipse.emf.ecore.EObject getExecutableRulePackage(IlrTask task)
task - the task to investigate.@Deprecated public static IlrRuleFlow getRootTask(IlrTask task)
task - the task to investigate.@Deprecated public static IlrOrderingKind getRuleOrdering(IlrRuleTask ruleTask)
ruleTask - the rule task to investigate.@Deprecated public static IlrExitCriteriaKind getExitCriteria(IlrRuleTask ruleTask)
ruleTask - the rule task to investigate.@Deprecated public static IlrAlgorithmKind getAlgorithm(IlrRuleTask ruleTask)
ruleTask - the rule task to investigate.@Deprecated public static java.lang.String getTaskInitialActions(java.lang.Object task)
task - either an IlrRuleFlowor an IlrTask.@Deprecated public static java.lang.String getTaskFinalActions(java.lang.Object task)
task - either an IlrRuleFlowor an IlrTask.public static IlrElement createInstance(org.eclipse.emf.ecore.EClass type)
type - the type of model element.@Deprecated public static java.lang.String getDefaultName(IlrRuleFlow ruleflow)
ruleflow - the ruelflow in which to add the model element.© Copyright IBM Corp. 1987, 2017