本文整理匯總了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;
}
示例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);
}
示例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);
}
示例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);
}