Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion
"Problem about define domain specific processes with enum parameter" To view the discussion, visit: http://community.jboss.org/message/601207#601207 -------------------------------------------------------------- Hi all, i'm trying to implement a domain specific task using following work definition import org.drools.process.core.datatype.impl.type.EnumDataType; [ [ "name" : "patientDataHandler", "displayName" : "Patient data", "parameters" : [ "Operation" : new EnumDataType("careMgmt.domainSpecificTask.PatientDataOperations"), ], //"icon" : "icons/notification.gif" ] ] but when i try to modify Operation's parameter in the properties of a patientDataHandler service task in the eclipse bpmn editor i have following error: java.lang.IllegalArgumentException: Could not find data type careMgmt.domainSpecificTask.PatientDataOperations at org.drools.process.core.datatype.impl.type.EnumDataType.getValueMap(EnumDataType.java:105) at org.drools.process.core.datatype.impl.type.EnumDataType.readValue(EnumDataType.java:70) at org.drools.eclipse.flow.ruleflow.core.WorkItemWrapper.setPropertyValue(WorkItemWrapper.java:172) at org.eclipse.gef.ui.properties.SetValueCommand.execute(SetValueCommand.java:60) at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:111) at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:111) at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:197) at org.eclipse.gef.ui.properties.UndoablePropertySheetEntry.valueChanged(UndoablePropertySheetEntry.java:147) at org.eclipse.gef.ui.properties.UndoablePropertySheetEntry.valueChanged(UndoablePropertySheetEntry.java:124) at org.eclipse.ui.views.properties.PropertySheetEntry.setValue(PropertySheetEntry.java:723) at org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:146) at org.eclipse.ui.views.properties.PropertySheetEntry$1.applyEditorValue(PropertySheetEntry.java:103) at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:333) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:331) at org.eclipse.jface.viewers.TextCellEditor.handleDefaultSelection(TextCellEditor.java:293) at org.eclipse.jface.viewers.TextCellEditor$1.widgetDefaultSelected(TextCellEditor.java:148) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:119) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) i don't know because the editor can't find PatientDataOperations, in any project files i can use it. does anyone know how to define a work item that accept as parameter a enum? i have put in META-INF directory drools.rulebase.conf and patientDataHandler.conf which i attached. i attach also the file that define enum Thanks, Francesco -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/601207#601207] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
