Runtime tools : Service engine : How to use Service Engine? : How to launch a remote flow and change flow state?
  
How to launch a remote flow and change flow state?
ServiceEngine se = ServiceEngine.getInstance();
RemoteSession rs = se.createRemoteSession("zh_CN", null, null);
System.out.println(rs.sessionID);
 
KeyedCollection inputData = (KeyedCollection)KeyedCollection.readObject("input");
KeyedCollection outputData = (KeyedCollection)KeyedCollection.readObject("output");
RemoteFlow rf = rs.createRemoteFlow("sampleFlow", null, outputData);
System.out.println(rf.getStateName());
System.out.println(outputData);
rf.changeEvent("nextEvent", inputData, outputData);
System.out.println(rf.getStateName());
System.out.println(outputData);
 
rf.close();
se.close();
Go up to
How to use Service Engine?