Created
August 2, 2013 05:39
-
-
Save anonymous/6137726 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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