1 5 6 package org.exoplatform.services.workflow.impl; 7 8 import org.exoplatform.services.workflow.WorkflowDefinitionService; 9 import org.jbpm.DefinitionService; 10 import org.jbpm.JbpmServiceFactory; 11 import org.jbpm.JpdlException; 12 13 import javax.sql.DataSource ; 14 import java.io.IOException ; 15 import java.util.jar.JarInputStream ; 16 import java.sql.SQLException ; 17 18 23 public class WorkflowDefinitionServiceImpl implements WorkflowDefinitionService { 24 private DefinitionService definitionService; 25 26 public WorkflowDefinitionServiceImpl(JbpmServiceFactory serviceLocator) { 27 definitionService = serviceLocator.getDefinitionService(); 28 } 29 30 31 public void deployProcessArchive(JarInputStream processArchiveStream) 32 throws JpdlException, IOException { 33 definitionService.deployProcessArchive(processArchiveStream); 34 } 35 36 public void close() { 37 definitionService.close(); 38 } 39 } 40 | Popular Tags |