09-06-2013 03:24 AM
//this handler proceed ALL logic, and call needed activiti to do the final actions
public void handle(org.eclipse.jetty.websocket.api.Session clientSession) {
//I. Create and Save to database
Session session = openHibernateSession();
MyObject obj = new MyObject();
session.save(obj);
….
//II. Notify client
clientSession.getRemote().sendString(Utils.objectToJson(obj));
//III. Start activiti
runtimeService.signalEventReceived("signal", executionId); //only proceed some minor logic, like saving history!!!
}
//this handler only start the needed activity, and nothing else
public void handle(org.eclipse.jetty.websocket.api.Session clientSession) {
//I. Kick needed Activiti
runtimeService.signalEventReceived("signal", executionId); //proceeed ALL logic like I, II & III-code sections in example above
}
09-06-2013 04:16 AM
09-06-2013 04:19 AM
09-06-2013 04:20 AM
09-06-2013 08:27 AM
09-12-2013 08:14 AM
03-10-2014 05:07 AM
03-10-2014 05:38 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.