當前位置: 首頁>>代碼示例>>Java>>正文


Java SimulationEngine類代碼示例

本文整理匯總了Java中org.kuali.rice.kew.engine.simulation.SimulationEngine的典型用法代碼示例。如果您正苦於以下問題:Java SimulationEngine類的具體用法?Java SimulationEngine怎麽用?Java SimulationEngine使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SimulationEngine類屬於org.kuali.rice.kew.engine.simulation包,在下文中一共展示了SimulationEngine類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: newEngine

import org.kuali.rice.kew.engine.simulation.SimulationEngine; //導入依賴的package包/類
/**
 * @see org.kuali.rice.kew.engine.WorkflowEngineFactory#newEngine(org.kuali.rice.kew.engine.OrchestrationConfig)
 */
@SuppressWarnings("unchecked")
@Override
public <E extends WorkflowEngine> E newEngine(OrchestrationConfig config) {
    switch (config.getCapability()) {
        case STANDARD:
            return (E) new StandardWorkflowEngine(routeNodeService, routeHeaderService, parameterService, config);
        case BLANKET_APPROVAL:
            return (E) new BlanketApproveEngine(routeNodeService, routeHeaderService, parameterService, config);
        case SIMULATION:
            return (E) new SimulationEngine(routeNodeService, routeHeaderService, parameterService, config);
    }
    
    return null;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:18,代碼來源:WorkflowEngineFactoryImpl.java

示例2: standardEngineCreate

import org.kuali.rice.kew.engine.simulation.SimulationEngine; //導入依賴的package包/類
@Test
public void standardEngineCreate() {
    OrchestrationConfig config = new OrchestrationConfig(EngineCapability.STANDARD);
    WorkflowEngine workflowEngine = factory.newEngine(config);
    
    assertNotNull(workflowEngine);
    assertFalse(workflowEngine instanceof BlanketApproveEngine);
    assertFalse(workflowEngine instanceof SimulationEngine);
    assertTrue(workflowEngine instanceof StandardWorkflowEngine);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:11,代碼來源:WorkflowEngineFactoryImplTest.java

示例3: blanketApproveEngineCreate

import org.kuali.rice.kew.engine.simulation.SimulationEngine; //導入依賴的package包/類
@Test
public void blanketApproveEngineCreate() {
    OrchestrationConfig config = new OrchestrationConfig(EngineCapability.BLANKET_APPROVAL);
    WorkflowEngine workflowEngine = factory.newEngine(config);
    
    assertNotNull(workflowEngine);
    assertTrue(workflowEngine instanceof BlanketApproveEngine);
    assertFalse(workflowEngine instanceof SimulationEngine);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:10,代碼來源:WorkflowEngineFactoryImplTest.java

示例4: simulationEngineCreate

import org.kuali.rice.kew.engine.simulation.SimulationEngine; //導入依賴的package包/類
@Test
public void simulationEngineCreate() {
    OrchestrationConfig config = new OrchestrationConfig(EngineCapability.SIMULATION);
    WorkflowEngine workflowEngine = factory.newEngine(config);
    
    assertNotNull(workflowEngine);
    assertFalse(workflowEngine instanceof BlanketApproveEngine);
    assertTrue(workflowEngine instanceof SimulationEngine);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:10,代碼來源:WorkflowEngineFactoryImplTest.java


注:本文中的org.kuali.rice.kew.engine.simulation.SimulationEngine類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。