当前位置: 首页>>代码示例>>Java>>正文


Java RuntimeEnvironment类代码示例

本文整理汇总了Java中org.kie.internal.runtime.manager.RuntimeEnvironment的典型用法代码示例。如果您正苦于以下问题:Java RuntimeEnvironment类的具体用法?Java RuntimeEnvironment怎么用?Java RuntimeEnvironment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RuntimeEnvironment类属于org.kie.internal.runtime.manager包,在下文中一共展示了RuntimeEnvironment类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getRuntimeManager

import org.kie.internal.runtime.manager.RuntimeEnvironment; //导入依赖的package包/类
private RuntimeManager getRuntimeManager(KieBase kbase) {
    // load up the knowledge base
	JBPMHelper.startH2Server();
	JBPMHelper.setupDataSource();
	Properties properties= new Properties();
    properties.setProperty(TASK_USER, TASK_GROUP);
    UserGroupCallback userGroupCallback = new JBossUserGroupCallbackImpl(properties);
    RuntimeEnvironment environment = RuntimeEnvironmentBuilder.getDefault()
        .userGroupCallback(userGroupCallback)
        .knowledgeBase(kbase)
        .get();
    RuntimeManagerFactoryImpl factory = new RuntimeManagerFactoryImpl();
    return factory.newSingletonRuntimeManager(environment);
}
 
开发者ID:jesuino,项目名称:bpms6-examples,代码行数:15,代码来源:HumanTaskTest.java

示例2: getRuntimeManager

import org.kie.internal.runtime.manager.RuntimeEnvironment; //导入依赖的package包/类
private RuntimeManager getRuntimeManager(String process) {
    // load up the knowledge base
	JBPMHelper.startH2Server();
	JBPMHelper.setupDataSource();
	Properties properties= new Properties();
    properties.setProperty(USER, GROUP);
    UserGroupCallback userGroupCallback = new JBossUserGroupCallbackImpl(properties);
    RuntimeEnvironment environment = RuntimeEnvironmentBuilder.getDefault()
        .userGroupCallback(userGroupCallback)
        .addAsset(ResourceFactory.newClassPathResource(process), ResourceType.BPMN2)
        .get();
    RuntimeManagerFactoryImpl factory = new RuntimeManagerFactoryImpl();
    return factory.newSingletonRuntimeManager(environment);
}
 
开发者ID:jesuino,项目名称:bpms6-examples,代码行数:15,代码来源:HumanTaskTest.java

示例3: get

import org.kie.internal.runtime.manager.RuntimeEnvironment; //导入依赖的package包/类
/**
 * Inits and returns the RuntimeEnvironment.
 * @return the RuntimeEnvironment
 */
public RuntimeEnvironment get() {
    _runtimeEnvironment.init();
    return _runtimeEnvironment;
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:9,代码来源:PatchedRuntimeEnvironmentBuilder.java

示例4: get

import org.kie.internal.runtime.manager.RuntimeEnvironment; //导入依赖的package包/类
/** Inits and returns the RuntimeEnvironment.
 * 
 * @return the RuntimeEnvironment */
public RuntimeEnvironment get() {
    _runtimeEnvironment.init();
    return _runtimeEnvironment;
}
 
开发者ID:jboss-integration,项目名称:fuse-bxms-integ,代码行数:8,代码来源:PatchedRuntimeEnvironmentBuilder.java


注:本文中的org.kie.internal.runtime.manager.RuntimeEnvironment类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。