ERROR when trying to preview forms

I always get the following error when I try to preview a form (and I can’t see any preview)
!ERROR The object ‘org.bonitasoft.studio.model.process.impl.ActorImpl@308585de (documentation: , name: Prosjektleder, initiator: true)’ is not contained in a resource.
!STACK 0
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: The object ‘org.bonitasoft.studio.model.process.impl.ActorImpl@308585de (documentation: , name: Prosjektleder, initiator: true)’ is not contained in a resource.
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.endSave(XMLSaveImpl.java:301)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:265)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:365)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1430)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.saveOnlyIfChangedWithMemoryBuffer(ResourceImpl.java:1144)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:985)
at org.bonitasoft.studio.form.preview.FormPreviewOperation.doCreateEMFResource(FormPreviewOperation.java:266)
at org.bonitasoft.studio.form.preview.FormPreviewOperation.run(FormPreviewOperation.java:172)
at org.bonitasoft.studio.form.preview.view.FormPreviewPropertiesView$1$1.run(FormPreviewPropertiesView.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.emf.ecore.xmi.DanglingHREFException: The object ‘org.bonitasoft.studio.model.process.impl.ActorImpl@308585de (documentation: , name: Prosjektleder, initiator: true)’ is not contained in a resource.
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.handleDanglingHREF(XMLHelperImpl.java:754)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment(XMLHelperImpl.java:725)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getIDREF(XMLHelperImpl.java:747)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveIDRefSingle(XMLSaveImpl.java:1987)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1328)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1219)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2711)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1176)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1037)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany(XMLSaveImpl.java:2412)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1548)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1219)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2711)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeTopObject(XMLSaveImpl.java:678)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveImpl.java:586)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:251)
… 8 more

I use Bonita BPM Studio 6.4.

Where is this .bos file located? I can’t find it.

And I don’t start any process when I am trying to preview a form.

To be honest - Preview a Form is next to useless.

You can only use it for *displaying layout *during design without data or any connectors working. It you have any variables or interactions with code - it will simply fail.

I gave up on Preview a long time ago and have simply been running the process via run. It’s the easiest way.

The bos file is created by doing DIAGRAM->EXPORT and saving the file to a directory somewhere.

regards

In order to help you with this issue can you share your process .bos file?

Also you might want to report the issue in the community bug tracker: https://bonita.atlassian.net

Hi,

As said by Sean you can get the .bos file from the Studio menu Diagram → Export… or by cliking on the Export button in the toolbar.

In the export window, make sure that your process diagram is selected, select the location where you want to save .bos file and click on Finish button.

If you face some issue with the “Preview” feature, feel free to report a bug on: https://bonita.atlassian.net