After designing the BOM, you create a rule agent project
to write the rules that define the business logic of your solution.
About this task
You create a rule agent project, and select the solution
project that the agent belongs to. In the agent descriptor, you specify
the bound entity, the events that the agent wants to process, and
you establish the routing logic.
Procedure
- Click .
- Enter a name for the rule agent project, and select the
solution project to attach the agent to.
- Specify a bundle symbolic name that complies to OSGi naming
conventions. By default, the wizard prefixes this name with the name
of the solution project to ensure its uniqueness and avoid conflicts
between solutions with similar agents.
Typically,
the symbolic name follows the package names style syntax, for example com.example.agent.
The name can contain letters from a to z, digits 0 - 9, periods
(.), underscores (_), or dash (-) characters. Spaces and other special
characters are not supported.
- Click Finish.
Results
The rule agent project generates an agent descriptor file agent.adsc to
define the routing logic.
The
agent project contains a reference to the BOM project.
Tip: To
view the solution project references, right-click the solution project,
and click .
The bundle symbolic name
is stored in the
MANIFEST.MF file of the agent
project. When you export an archive, this name is used along with
the version number to define the agent bundle.
What to do next
Complete the agent descriptor by using the completion menu
to select the terms and phrases from the referenced BOM.