I`m working on a project and want to use the bpmn2 diagram editor as viewer for a workflow. When I change the bpmn2 model file(e.g., add a new task or remove a task), the diagram editor will stop working(all things on the panel disrepair).
Could you tell me, is it possible to make the diagram editor automatically refresh(or reload) after I change the model file?
Robert Brodt Messages: 809 Registered: August 2010 Location: Colorado Springs, CO
I'm not sure I understand: how does the editor stop working? is there anything in the Error Log? which "panel" are you talking about, the toolpalette? and by "disrepair" I'm guessing you meant "disappear" maybe?
As for your question (make the diagram editor automatically refresh) I'm guessing you want the editor to reload the file after a change is made by an external editor (like the XML or Text editor) maybe?
I would like to help, but I need a little more information to go on
Just like you said, I want the diagram editor to reload the model file after a change is made by my application.
For example, I open the bpmn file using diagram editor, and then use my application to load the models from the file and make some changes.
Problem is, after I save the file, and focus on the diagram editor again(move mouse to the editor and click), all of the previous figures disappear(not the toolpalette). Only if I closed the editor and reopen it, the changes can be updated.
Is there any way to make the editor reload/refresh?