08-05-2015 01:03 PM
CdiStandaloneProcessEngineConfiguration processEngineConfiguration = new CdiStandaloneProcessEngineConfiguration();
processEngineConfiguration.setProcessEngineName("default");
processEngineConfiguration.setDataSourceJndiName("JDBC_xxx");
processEngineConfiguration.setDatabaseType("oracle");
processEngineConfiguration.setTransactionsExternallyManaged(false);
processEngineConfiguration.setJobExecutorActivate(true);
processEngine = processEngineConfiguration.buildProcessEngine();
@Stateless
@LocalBean
@Named
public class Dummy {
public void print() {
System.out….
}
}
<serviceTask id="servicetask1" name="Service Task" activiti:expression="#{dummy.print()}"></serviceTask>
RuntimeService runtimeService = processEngine.getRuntimeService();
runtimeService.startProcessInstanceByKey("myProcess");
08-06-2015 08:17 AM
08-07-2015 09:17 AM
08-07-2015 10:02 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.