Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. RemoteRestRuntimeFactory restSessionFactory
  2.  
  3. = new RemoteRestRuntimeFactory(deploymentId, baseUrl, user, password);
  4.  
  5.  
  6. // Create KieSession and TaskService instances and use them
  7.  
  8. RuntimeEngine engine = restSessionFactory.newRuntimeEngine();
  9.  
  10. KieSession ksession = engine.getKieSession();
  11.  
  12. ProcessInstance processInstance = ksession.startProcess("com.burns.reactor.maintenance.cycle");
  13.  
  14. long procId = processInstance.getId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement