此内容没有您所选择的语言版本。

8.7. Manifest


8.7.1. Manifest

The Manifest is where you specify from where the "intelligence" of the component is to come. For the BPM component, you need to specify, at the minimum, the location of the BPMN 2 process definition file. For the Rules component, you can specify the location of DRL, DSL, DSLR or XLS files.

8.7.2. Ways of Configuring the Manifest

Note
The following code examples assume there is a DRL file located on the classpath at com/example/MyRules.drl.
There are two ways to to configure the Manifest:
  • with a KIE Container. (This relies upon the existence of a META-INF/kmodule.xml configuration file.)
    Here is the sample META-INF/kmodule.xml file:
    <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
        <kbase name="com.example">
            <ksession name="my-session"/>
        </kbase>
    </kmodule>
    
    
    Here is the sample XML file:
    <manifest>
        <container sessionName="my-session"/>
    </manifest>
    
    
    In addition to the sessionName attribute, you can also specify baseName and releaseId, if you desire.
    To enable it to scan for updates, simply set scan="true" and, optionally,
     scanInterval=<# of milliseconds>
    
  • with a manually defined list of resources.
    Here is the sample XML file:
    <manifest>
        <resources>
            <resource location="com/example/MyProcess.bpmn" type="BPMN2"/>
            <resource location="com/example/MyRules.drl" type="DRL"/>
        </resources>
    </manifest>
    
Important
These two options are mutually exclusive: You have to choose one or the other.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.