file [Solved] Run Time Error when opening a Activity Diagram

5 years 5 months ago - 5 years 5 months ago #3313 by mtkona
Hi,

I´m getting a runtime error when opening a activity diagram.

Line: 0
CKEditor not defined.

See attached image.

Tks.

Marcelo
Attachments:

Please Log in or Create an account to join the conversation.

5 years 5 months ago #3316 by pan
Hi mtkona,

I think that you have an HTML note displayed in your diagram. To display the HTML notes your system web browser that supports the CKEditor ( List of supported browsers ).
Anyway could you share your project with us?

BR

Please Log in or Create an account to join the conversation.

5 years 5 months ago #3328 by mtkona
Hi,

Thank you for the reply.

How can I see if I have HTML nodes in my project ?

I managed to open the activity diagram in a different way (see fig2 attached). Rather than open the diagram by sight "Model", I opened the "Outline" (see fig2) view by clicking "Diagrams". In "Model", activity diagrams and do not appear (see fig1).

Sorry, I cannot share the project because has confidential information.
Attachments:

Please Log in or Create an account to join the conversation.

5 years 5 months ago #3330 by pan
Hi,

You can access the activity diagram in the Model browser by clicking on the [+] icon on the Activty "ADF01...". The diagram will be shown under the Activity "ADF01..." (See attached image

)

You have this error only when you open a specific activity diagram? Did you create this diagram yourself?

It seems that you are using Windows XP. What is your IE version?

You can parse the Notes by using Jython.
This is a sample:
session = Modelio.getInstance().getModelingSession()
			
def isOnProject(element):
	if getOwnerProject(element) != None:
		return True
	else:
		return False
			
def getOwnerProject(element):
	if element.getMClass().getName() == "Project":
		return element

	parent = element.getCompositionOwner()
	while (parent != None):
		if parent.getMClass().getName() == "Project":
			return parent
		else:
			parent = parent.getCompositionOwner()


def getMimeType(note):
	if isinstance(note, Note):
		if note.getMimeType() != "":
			return note.getMimeType()
		else:
			return note.getModel().getMimeType()
	else:
		return None
		
allnotes = session.findByClass(Note)
for note in allnotes:
	modulename = note.getModel().getModule().getName()
	notetypename = note.getModel().getName()
	notecontent = note.getContent()
	if (isOnProject(note.getSubject()) and notetypename == "description" and modulename == "ModelerModule"):		
			print "Note owner: " + note.getSubject().getName() + "[" + note.getSubject().getMClass().getName() + "]"
			print note.getContent()
			print "MimeType: " + getMimeType(note)
			print "==========="	
	
This Jython script list all "description" notes present in your project. This script can be improved by showing the full model path of the note owner. You can filter the notes which have the MimeType "text/html" (It is a note of this mime type which problably is problematic). It seems that you have a big model so I suggest to parse only a small part of your model.
Attachments:

Please Log in or Create an account to join the conversation.

5 years 5 months ago #3334 by mtkona
Hi,

This error occurred when opening all activity diagrams. But with this solution is working now, thank you.

I was opening the activity diagram that way, going in sight "Diagrams" and clicking on the diagram.

My computer is running Windows XP Professional with IE6. But I also have Chrome installed, latest version. What the browser Modelio uses?

I also have a problem to change the data type of an attribute of a class. The Modelio is not changing. I will open a new post.

Thank you for you time and help.

Please Log in or Create an account to join the conversation.

5 years 5 months ago #3337 by pan
I'm glad that it is working now.

To support HTML edition in the descripton notes you need at leat IE9. This setting cannot be configured from Modelio. Actually the embedded HTML editor uses the system web browser (not the default web browser) so in Windows it is IE. It is preferable to update your IE for many reasons (not only for supporting HTML edition of description notes :P ).

Please Log in or Create an account to join the conversation.

Moderators: tmaaabcde
Time to create page: 0.163 seconds
^ Back to Top