Skip to content

Instantly share code, notes, and snippets.

@sherl0cks
Created December 1, 2015 19:25
Show Gist options
  • Save sherl0cks/3073d904912195ca1e9d to your computer and use it in GitHub Desktop.
Save sherl0cks/3073d904912195ca1e9d to your computer and use it in GitHub Desktop.
String deploymentId = (String) ctx.getData("deploymentId");
RuntimeManager runtimeManager = RuntimeManagerRegistry.get().getManager(deploymentId);
if (runtimeManager == null) {
throw new IllegalStateException("There is no runtime manager for deployment " + deploymentId);
}
RuntimeEngine engine = runtimeManager.getRuntimeEngine(ProcessInstanceIdContext.get());
KieSession ksession = engine.getKieSession();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment