Skip to content

Instantly share code, notes, and snippets.

Created August 2, 2013 05:39
Show Gist options
  • Select an option

  • Save anonymous/6137726 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/6137726 to your computer and use it in GitHub Desktop.
public class Activator implements BundleActivator {
@Override
public void start(BundleContext context) throws Exception {
ServiceReference reference = context.getServiceReference(ProcessEngine.class.getName());
while(reference == null){
Thread.sleep(200L);
reference = context.getServiceReference(ProcessEngine.class.getName());
}
ProcessEngine processEngine = (ProcessEngine) context.getService(reference);
((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getFormTypes().addFormType(new UrlFormType());
}
@Override
public void stop(BundleContext context) throws Exception {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment