| bpmn files creation problem [message #613886] |
Fri, 21 March 2008 11:31  |
|
Originally posted by: s.balard.prometil.com
Hi,
for needs of my own RCP application, i use stp bpmn.
I developed a wizard which has to create its own project type. Under
project root, i want the wizard create automatically a .bpmn file and
its relative .bpmn_diagram file.
In wizard performFinish() method, i wrote this :
IRunnableWithProgress op1 = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor)
throws InvocationTargetException {
BpmnDiagramEditorUtil.createNewDiagramFile(
BpmnDiagramFileCreator.getInstance(), ((IProject)
ResourcesPlugin.getWorkspace().getRoot().getProject(
newProjectMainPage.getProjectName()))
.getFullPath(), newProjectMainPage
.getProjectName(), null, ViewType.DIAGRAM_LINK,
getShell(), monitor);
monitor.done();
}
};
and executed it a little further in the method code :
getContainer().run(false, true, op1);
The .bpmn_diagram is well created but it is empty and the .bpmn isn't
created.
Can anyone help me please ?
Regards,
Sebastien
|
|
|