Re: Problem reading Entity Modeler file in EOModeler

From: Mike Schrag (mschra..obox.com)
Date: Fri Sep 03 2010 - 18:44:33 UTC

  • Next message: Louis Demers (JIRA): "[OS-JIRA] Created: (WOL-1173) In the Component editor, creating a displaygroup does not remember the entity name"

    "for some definitions of ugly" :)

    there's an eomodelgraffle commandline tool, too, which tries to do a slightly prettier version of that.

    ms

    On Sep 3, 2010, at 2:41 PM, Ken Anderson wrote:

    > One thing I didn't mention while at WOWODC, but it's pretty cool. If you have OmniGraffle, it still opens eomodels...
    >
    > Ken
    >
    > On Sep 3, 2010, at 2:38 PM, David Holt wrote:
    >
    >> After the hints that Ramsey gave in his presentation at WOWODC I got the graphviz stuff working in my application. Thanks Anjo, it is very cool.
    >>
    >> One thing to watch for if you have a rule with sections or tabs like this in your application:
    >>
    >> entity.name = 'Activity' => displayPropertyKeys = (
    >> ("Activity Detail", "activityTitle", "isDone", "activityCategory", "timestampStart", "timestampEnd", "participants", "activityDescription", "documents"),
    >> ("Teleconference Detail", "teleconferenceNumber", "teleconferenceCode")
    >> )
    >>
    >> The array doesn't make sense in the context of creating a GraphViz page so you'll need to make sure all your relevant displayPropertyKeys are flat.
    >>
    >> David
    >>
    >>
    >> On 2009-12-03, at 2:55 AM, Anjo Krank wrote:
    >>
    >>> Soo.... this actually turns out to be pretty neat:) From my model below, adding
    >>>
    >>> 100: pageConfiguration = GraphVizPayment => visibleEntityNames = (
    >>> "Payment",
    >>> "PaymentType",
    >>> "PaymentChannel",
    >>> "PaymentChannelType"
    >>> )
    >>>
    >>> yields:
    >>>
    >>>
    >>> <pastedGraphic.png>
    >>>
    >>>
    >>> Note that it automatically creates the missing nodes.
    >>>
    >>> Sweet. One *could* make it so it uses the tools directly and return the PDF. Right now it only creates the .dot file and you still have to open it in the GV app.
    >>>
    >>> Cheers, Anjo
    >>>
    >>>
    >>> Am 03.12.2009 um 11:41 schrieb Anjo Krank:
    >>>
    >>>>
    >>>> Am 02.12.2009 um 18:14 schrieb Mike Schrag:
    >>>>
    >>>>> I whipped up a quick graffle generator: http://webobjects.mdimension.com/wolips/eomodelgraffle-latest.jar
    >>>>
    >>>> Nice work for the 2 hours, but it's worthless for anything > 5 entities. There is a heuristic in the D2JS thingy which defines "entity groups", i.e. subsets of entities that "belong" together (possibly by removing lookup entities and ordering by number of inbound/outbound relationships) which *might* be of help to make this mess a bit cleaner.
    >>>>
    >>>> So this looks like:
    >>>>
    >>>> <pastedGraphic.png>
    >>>>
    >>>>
    >>>>
    >>>> The 0:58:33 GraphViz version looks like:
    >>>>
    >>>> <pastedGraphic.png>
    >>>>
    >>>>
    >>>> Which is at least a bit more readable (although it's still a mess). It's based on D2W, so you should be able to call it with ERD2WDirectAction as
    >>>>
    >>>> http://bla/cgi-bin/WebObjects/myapp.woa/wa/GraphVizSomeSetting
    >>>>
    >>>> and (halfway easily) configure the entities to show. DO NOT ASK ME HOW! Look at ERD2WGraphVizPage and adapt/extend/whatever it yourself.
    >>>>
    >>>> Cheers, Anjo
    >>>>
    >>>>
    >>>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Fri Sep 03 2010 - 18:45:17 UTC