public class IlrRulesetArchiveExporter
extends java.lang.Object
Note that before creating the ruleset archive this class performs an incremental build on the rule project to ensure that the contents of the output directory is up to date.
The Eclipse scheduling rule for this utility class is the workspace root (because a build is triggered). This class must therefore not be called with a scheduling rule that can not be contained by the workspace root.
| Constructor and Description |
|---|
IlrRulesetArchiveExporter(IlrExtractor extractor)
Deprecated.
This method is not applicable to decision service projects.
Use
IlrRulesetArchiveExporter(IlrRuleProject,String) instead. |
IlrRulesetArchiveExporter(IlrRuleProject ruleProject)
Creates an exporter for this rule project.
|
IlrRulesetArchiveExporter(IlrRuleProject ruleProject,
java.lang.String selectorName)
Creates an exporter for this rule project and an extractor or an operation name
(respectively for classic rule projects or decision service projects).
|
| Modifier and Type | Method and Description |
|---|---|
IlrRulesetArchive |
export(org.eclipse.core.runtime.IProgressMonitor monitor,
boolean useJob,
boolean user,
java.lang.String filePath)
Creates an archive file at a given path.
|
IlrRulesetArchive |
export(java.lang.String filePath)
Creates an archive file pointed at a given path.
|
void |
exportAsync(org.eclipse.core.runtime.IProgressMonitor monitor,
boolean user,
java.lang.String filePath)
Creates the archive file at a given.
|
public IlrRulesetArchiveExporter(IlrRuleProject ruleProject)
ruleProject - @Deprecated public IlrRulesetArchiveExporter(IlrExtractor extractor)
IlrRulesetArchiveExporter(IlrRuleProject,String) instead.extractor - public IlrRulesetArchiveExporter(IlrRuleProject ruleProject, java.lang.String selectorName)
java.lang.IllegalArgumentException - if there is no extractor or operation with the given
selector name.ruleProject - selectorName - name of a ruleset extractor defined on the given classic rule project,
or name of an operation if the given rule project is a decision service.public IlrRulesetArchive export(java.lang.String filePath) throws java.lang.Exception
Creates an archive file pointed at a given path. If filePath is null, no file is created, but the IlrRulesetArchive object is still returned.
Note that this method will trigger an incremental build prior to exporting the project contents.
An Eclipse Job is not created using this method.
java.io.IOExceptionjava.lang.ExceptionfilePath - Path to the archive file. This path can be absolute, or
relative to the current rule project.public IlrRulesetArchive export(org.eclipse.core.runtime.IProgressMonitor monitor, boolean useJob, boolean user, java.lang.String filePath) throws java.lang.Exception
Creates an archive file at a given path. If filePath is null, no file is created, but the IlrRulesetArchive object is still returned. The methods blocks until the export is complete.
Note that this method will trigger an incremental build prior to exporting the project contents.
IMPORTANT:
An Eclipse Job may optionally be created for the ruleset export operation. Note
that Eclipse will hang if an Eclipse Job is created while a modal dialog is being
displayed.
java.io.IOExceptionjava.lang.Exceptionmonitor - the progress monitor to useuseJob - if true an Eclipse Job is created for the archive export operation.user - whether the Job created for ruleset export should be a user initiated job. Ignored if useJob is false.filePath - Path to the archive file. This path can be absolute, or
relative to the current rule project.public void exportAsync(org.eclipse.core.runtime.IProgressMonitor monitor,
boolean user,
java.lang.String filePath)
throws java.lang.Exception
java.lang.Exceptionmonitor - the progress monitor to useuser - whether the Job created for ruleset export should be a user initiated jobfilePath - Path to the archive file. This path can be absolute, or
relative to the current rule project. Must not be bull.© Copyright IBM Corp. 1987, 2017