org.camunda.spin.plugin.impl.SpinProcessEnginePlugin Java Examples
The following examples show how to use
org.camunda.spin.plugin.impl.SpinProcessEnginePlugin.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CamundaBpmAutoConfigurationIT.java From camunda-bpm-spring-boot-starter with Apache License 2.0 | 6 votes |
@Test public void ensureSpinProcessEnginePluginIsCorrectlyLoaded() { // given List<ProcessEnginePlugin> plugins = processEngineConfiguration.getProcessEnginePlugins(); List<TypedValueSerializer<?>> serializers = processEngineConfiguration.getVariableSerializers().getSerializers(); if (plugins.get(0) instanceof CompositeProcessEnginePlugin) { plugins = ((CompositeProcessEnginePlugin) plugins.get(0)).getPlugins(); } boolean isJacksonJsonDataFormat = serializers.stream().anyMatch(s -> s instanceof SpinObjectValueSerializer && s.getSerializationDataformat().equals("application/json")); // then assertThat(plugins.stream().anyMatch(plugin -> plugin instanceof SpinProcessEnginePlugin)).isTrue(); assertThat(isJacksonJsonDataFormat).isTrue(); }
Example #2
Source File: StandaloneDebugWebsocketBootstrap.java From camunda-bpm-workbench with GNU Affero General Public License v3.0 | 6 votes |
public static void main(String[] args) { // start process engine StandaloneInMemProcessEngineConfiguration processEngineConfiguration = new StandaloneInMemProcessEngineConfiguration(); processEngineConfiguration.setProcessEngineName(ProcessEngines.NAME_DEFAULT); // add plugins List<ProcessEnginePlugin> processEnginePlugins = processEngineConfiguration.getProcessEnginePlugins(); processEnginePlugins.add(new DebuggerPlugin()); processEnginePlugins.add(new SpinProcessEnginePlugin()); processEnginePlugins.add(new ConnectProcessEnginePlugin()); processEngineConfiguration.buildProcessEngine(); DebugSessionFactory.getInstance().setSuspend(false); // start debug server DebugWebsocket debugWebsocket = null; try { // configure & start the server debugWebsocket = new DebugWebsocketConfiguration() .port(9090) .startServer(); // block debugWebsocket.waitForShutdown(); } finally { if(debugWebsocket != null) { debugWebsocket.shutdown(); } } }
Example #3
Source File: CamundaBpmAutoConfigurationIT.java From camunda-bpm-platform with Apache License 2.0 | 6 votes |
@Test public void ensureSpinProcessEnginePluginIsCorrectlyLoaded() { // given List<ProcessEnginePlugin> plugins = processEngineConfiguration.getProcessEnginePlugins(); List<TypedValueSerializer<?>> serializers = processEngineConfiguration.getVariableSerializers().getSerializers(); if (plugins.get(0) instanceof CompositeProcessEnginePlugin) { plugins = ((CompositeProcessEnginePlugin) plugins.get(0)).getPlugins(); } boolean isJacksonJsonDataFormat = serializers.stream().anyMatch(s -> s instanceof SpinObjectValueSerializer && s.getSerializationDataformat().equals("application/json")); // then assertThat(plugins.stream().anyMatch(plugin -> plugin instanceof SpinProcessEnginePlugin)).isTrue(); assertThat(isJacksonJsonDataFormat).isTrue(); }
Example #4
Source File: TestApplication.java From camunda-bpm-spring-boot-starter with Apache License 2.0 | 5 votes |
@Bean(name = "spinProcessEnginePlugin") public ProcessEnginePlugin spinProcessEnginePlugin() { return new SpinProcessEnginePlugin() { // When testing the NoJpaAutoConfigurationIT test, ensure that no Custom DataFormat // Serializers are loaded, otherwise the test's assumption will fail @Override public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) { registerFunctionMapper(processEngineConfiguration); registerScriptResolver(processEngineConfiguration); registerValueTypes(processEngineConfiguration); registerFallbackSerializer(processEngineConfiguration); } }; }
Example #5
Source File: TestApplication.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
@Bean(name = "spinProcessEnginePlugin") public ProcessEnginePlugin spinProcessEnginePlugin() { return new SpinProcessEnginePlugin() { // When testing the NoJpaAutoConfigurationIT test, ensure that no Custom DataFormat // Serializers are loaded, otherwise the test's assumption will fail @Override public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) { registerFunctionMapper(processEngineConfiguration); registerScriptResolver(processEngineConfiguration); registerValueTypes(processEngineConfiguration); registerFallbackSerializer(processEngineConfiguration); } }; }