You use the Samples Console to set up the sample.
About this task
This sample extends the Rule Designer
API, and the required sample plug-ins are delivered as predeployed.
Procedure
To import the dtpopulate sample:
-
Open the Samples Console (see Running samples from the the Samples Console).
-
In the Samples and Tutorials tab, expand .
-
Under Data sources for decision tables, click Import
projects.
If one or more files already exist in your workspace,
Rule Designer displays a warning message.
Rule
Explorer displays the imported sample files:
- dtpopulate-rule: The target sample rule project, which contains the decision
table to populate. The sample shows different ways to populate the table.
- dtpopulate-xom: A Java™ project that
contains the execution model of dtpopulate-rule.
- dtpopulate-application: A Java project
that includes an Ant build file (build.xml) that contains different Ant tasks
that are used to demonstrate different execution scenarios.
Note: The target init.runtime is included in the
build.xml file to help Eclipse set the runtime properties before it runs the
sample: os (operating system), ws (window system), and
arch (architecture). This setup works for most common configurations. If it does
not match your runtime environment, you can modify the Ant target to implement the values of these
properties.