<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Eclipse Editor and defining Service Tasks
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/tim.kutz">Tim Kutz</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/715301#715301">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I am having difficulty with defining Service Tasks for the BPMN editor for Eclipse.  I believe there is some form of conflict between the BPMN editor plugin, and something else in my Eclipse.  We use a standard bundle of plugins for the development team, to ensure we are all using common versions of necessary plugins such as m2eclipse, and subclipse.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have downloaded the 5.2 installer, and run the ant task "install.droolsjbpm-eclipse.into.eclipse" task, and the editor appears to be installed, with the ability to create a new bpmn process appearing as expected from the documentation.  However, when I attempt to define a Service Task, following the directions in Chapter 13 of the User Guide, the editor gives me an error when starting up, which says: <strong>Could not parse work definitions test.wid: java.util.HashMap cannot be cast to java.util.List</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>There is a stack trace in my eclipse log file, as well: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>!ENTRY org.drools.eclipse 4 120 2012-02-08 12:39:17.635</p><p>!MESSAGE Internal error in Drools Plugin: </p><p>!STACK 0</p><p>java.lang.RuntimeException: Could not parse work definitions test.wid: java.util.HashMap cannot be cast to java.util.List</p><p>          at org.drools.RuleBaseConfiguration.loadWorkItems(RuleBaseConfiguration.java:806)</p><p>          at org.drools.RuleBaseConfiguration.initWorkDefinitions(RuleBaseConfiguration.java:790)</p><p>          at org.drools.RuleBaseConfiguration.getWorkDefinitions(RuleBaseConfiguration.java:765)</p><p>          at org.drools.eclipse.WorkItemDefinitions.getWorkDefinitions(WorkItemDefinitions.java:67)</p><p>          at org.drools.eclipse.WorkItemDefinitions.getWorkDefinitions(WorkItemDefinitions.java:50)</p><p>          at org.drools.eclipse.flow.bpmn2.editor.BPMNModelEditor.refreshPalette(BPMNModelEditor.java:123)</p><p>          at org.drools.eclipse.flow.bpmn2.editor.BPMNModelEditor.setInput(BPMNModelEditor.java:108)</p><p>          at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:346)</p><p>          at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)</p><p>          at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)</p><p>          at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)</p><p>          at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)</p><p>          at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)</p><p>          at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1429)</p><p>          at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)</p><p>          at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)</p><p>          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)</p><p>          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)</p><p>          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)</p><p>          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)</p><p>          at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)</p><p>          at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)</p><p>          at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)</p><p>          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)</p><p>          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)</p><p>          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)</p><p>          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)</p><p>          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)</p><p>          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)</p><p>          at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)</p><p>          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)</p><p>          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)</p><p>          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)</p><p>          at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)</p><p>          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)</p><p>          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)</p><p>          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)</p><p>          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)</p><p>          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p><p>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</p><p>          at java.lang.reflect.Method.invoke(Unknown Source)</p><p>          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)</p><p>          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)</p><p>          at org.eclipse.equinox.launcher.Main.run(Main.java:1408)</p><p>          at org.eclipse.equinox.launcher.Main.main(Main.java:1384)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have also used the installer to download and install a full clean eclipse package using the install.demo.eclipse target, and the definition works as expected, there.  This confirms that the .wid file itself is valid.  However, that install is missing all of the other plugins needed for development in our standard development.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am using Eclipse Helios, with m2eclipse 0.12, subclipse 1.6.17.  Any assistance in making this work in our standard environment would be greatly appreciated.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/715301#715301">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>