How to run rule files from the command line?

homepage Forums BridgePoint/xtUML Usage and Training How to run rule files from the command line?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1355
    sfinnie
    Participant

    I’m using the xtuml editor (not BP,so no verifier / model compiler). I’ve written some some rules files that I want to run over my models, however I can’t get it to work. Would appreciate any suggestions.

    What I’m doing:

    1. Export model from the editor – produces file ‘go.xtuml’. Seems fine
    2. Run a .cmd file with the following contents:

    [code title=””]
    set PATH=%PATH%;C:\sf\bin\xtUMLEditor\eclipse_extensions\BridgePoint\eclipse\plugins\com.mentor.nucleus.bp.core.win32.x86_4.1.2\os\win32\x86\lib
    set PATH=%PATH%;C:\sf\bin\xtUMLEditor\eclipse_extensions\BridgePoint\eclipse\plugins\com.mentor.nucleus.bp.core.win32.x86_4.1.2\bridgepoint\win32\client\bin
    call xtumlmc_gen_erate.cmd -arch ooa2rdb.rule -d 1 -import go.xtuml -e foo -nopersist -v STMT
    [/code]

    It fails with a pop up dialogue saying “Failed to load required MGLS dll”. OK’ing that pops up another that says:

    “gen_erate

    The system could not find the environment option that was entered
    (
    C:\sf\bin\xtUMLEditor\eclipse_extensions\BridgePoint\eclipse\plugins\com.mentor.nucleus.bp.core.win32.x86_4.1.2\bridgepoint\win32\client\bin
    )

    Thanks for any pointers.

    – Scott.

    PS: the ‘-e foo’ argument is only there because the help files say it has to be present but the value doesn’t matter.

    #1356
    sfinnie
    Participant

    EDIT: I changed tack to use pt_gen_import/pt_gen_file:

    [code title=””]@echo off
    set PATH=%PATH%;C:\sf\bin\xtUMLEditor\eclipse_extensions\BridgePoint\eclipse\plugins\com.mentor.nucleus.bp.core.win32.x86_4.1.2\os\win32\x86\lib
    set PATH=%PATH%;C:\sf\bin\xtUMLEditor\eclipse_extensions\BridgePoint\eclipse\plugins\com.mentor.nucleus.bp.core.win32.x86_4.1.2\bridgepoint\win32\client\bin
    set OOASCHEMA=C:\sf\bin\xtUMLEditor\eclipse_extensions\BridgePoint\eclipse\plugins\com.mentor.nucleus.bp.dap.pkg_4.1.2\bridgepoint\xtumlmc_schema.sql
    set TDB=go.tdb

    REM call xtumlmc_gen_erate.cmd -arch ooa2rdb.rule -d 1 -import go.xtuml -e foo -nopersist -v STMT

    del %TDB%
    REM Load XTUML schema (1)
    call pt_gen_import %TDB% %OOASCHEMA%
    REM load the model (2)
    call pt_gen_import %TDB% go.xtuml
    REM call pt_gen_file %TDB% ooa2rdb.rule[/code]

    The binaries execute properly and the schema loads fine (1). However loading the model (2) fails because the schema doesn’t include tables for the graphical data. Not sure how to resolve this? can’t find another schema file that includes graphics tables; and can’t see a way to export model from the modeller without the graphical data.

    Any pointers?

    Thanks.

    #1358
    cort
    Keymaster

    Hi Scott,
    You are attempting to run the “generator” (model compiler) which is not technically part of the xtUML Editor (even though some of the files may be present). You will need the (licensed) BridgePoint tool to accomplish your task.
    Regards,
    Cort

    #1359
    sfinnie
    Participant

    Hi Cort, thanks for the reply.

    In that case I’d like to investigate the Java API you mention here . Can you point to any documentation? Thanks.

    – Scott.

    PS: Just noticed another post asking the same question. I’ll track that question so you don’t need to answer twice.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.