Lokesh Shiva Ramu [
http://community.jboss.org/people/lokeshsan] created the discussion
"Integrating jBPM BPMNModelEditor with eclipse RCP"
To view the discussion, visit:
http://community.jboss.org/message/589263#589263
--------------------------------------------------------------
Hi,
I have to integrate BPMNModelEditor with my RCP client. I need to show the
BPMNModelEditor as a page in a multipage editor. None of the classes in the plugin
"org.drools.eclipse" are exported, therefore I cannot use them. No other means
provided to plug to this editor. When I try to open this editor by passing an
IStorageEditorInput instance. I get following exceptions.
java.lang.IllegalArgumentException: Unknown model object null
at
org.drools.eclipse.flow.ruleflow.editor.editpart.RuleFlowEditPartFactory.createEditPart(RuleFlowEditPartFactory.java:96)
at
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:626)
at
org.drools.eclipse.flow.common.editor.GenericModelEditor.initializeGraphicalViewer(GenericModelEditor.java:177)
at
org.eclipse.gef.ui.parts.GraphicalEditor.createGraphicalViewer(GraphicalEditor.java:158)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithPalette.createPartControl(GraphicalEditorWithPalette.java:63)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1268)
What I could see from code is, there is an assumption that the IEditorInput to the editor
will always be of type IFileEditorInput. The createModel() function in BPMNModelEditor,
does a type cast with this assumption. If there is a failure in constructing model, then
null is set as model.
Can BPMNModelEditor be integrated with RCP application. What is the best way to provide a
jBPM editor in eclipse RCP. I am not particular to open the jBPM editor as part of page.
Even if its a standalone page its fine. I cannot show .jbpm files in my RCP. I need to
open jBPM editor based on stream based editor input.
Any one who has integrated the BPMNModelEditor in there RCP application ?
Any suggestion is hightly appreciated.
Thanks and Regards,
Lokesh
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/589263#589263]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]