05-30-2014 03:16 AM
@Transactional
@Component("myServiceBean")
public MyServiceBean{
}
public void doSomething() throws RuntimeException{
taskService.complete("101");
}
@Transactional
@Component("CaseAcceptEndListener")
public class CaseAcceptEndListener implements ExecutionListener{
@Override
public void notify(DelegateExecution delegateexecution) throws Exception {
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myKey");
HistoricProcessInstance hp =
historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstance.getId())
.singleResult();
}
}
@Test
public void test(){
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myKey");
HistoricProcessInstance hp =
historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstance.getId())
.singleResult();
}
06-05-2014 12:12 AM
06-06-2014 07:47 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.