AA

Hi Commiunty ;

i want to add to my report process diagram please any body can help me !!!

regards

by adnan shahab
Posted on Sun, 08/01/2010 - 12:25

Use Report Wizard that is shipped with ARIS BA.

Report Wizard is good for simple reports.

0
by Ahmed Alnasasrah Author
Posted on Mon, 08/02/2010 - 08:16
hi all i want to add the diagram to this script in any way please




    var oOutput = Context.createOutputObject();     // Output object
    var nLocale = Context.getSelectedLanguage();    // Selected database language
    //===============logo======
   

    //=========================
    //=======Information Table===================================================================
   
	oOutput.OutputLn("Report Test", "Arial", 40, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
    oOutput.OutputLn("Jordan Islamic Bank", "Arial", 20, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
   
    //===============================================================================
    
    
    
   
     //===============Table======
    
   

    //=========================
    
    
    
    
    //Build Table
    //ROW +++++ Header Of Table
    oOutput.BeginTable(100, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);        
    oOutput.TableRow();  
    oOutput.TableCell("Model name", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    oOutput.TableCell("Object name", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    oOutput.TableCell("Id", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    oOutput.TableCell("Description", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
   // oOutput.TableCell(sModelType, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    //=================================================
    oOutput.TableCell("New", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    oOutput.TableCell("Object Type", 15, "Arial", 10, Constants.C_BLACK, Constants.C_LIGHT_YELLOW, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
     
    var aModels = ArisData.getSelectedModels();     // Array of selected models
    for (var i = 0; i < aModels.length; i++) {          
        var oModel = aModels[i];                    // Current model
        var sModelName = oModel.Name(nLocale);      // Name of current model
        var sModelID = getAttributeValue(oModel, Constants.AT_ID);      // ID of current model
        var sModelDesc = getAttributeValue(oModel, Constants.AT_DESC);  // Description of current model  
        var sModelType = oModel.Type();
        
       
        oOutput.TableRow();  
        oOutput.TableCell(sModelName, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        oOutput.TableCell("", 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        oOutput.TableCell(sModelID, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        oOutput.TableCell(sModelDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        //======================
        oOutput.TableCell(sModelType, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        oOutput.TableCell(sModelDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
        
        //=========================
        
        var aObjDefs = oModel.ObjDefList();         // All object definitions that have occurrences in the model
        for (var j = 0; j < aObjDefs.length; j++) {          
            var oObjDef = aObjDefs[j];              // Current object definition
            var sObjName = oObjDef.Name(nLocale);   // Name of current object
            var sObjID = getAttributeValue(oObjDef, Constants.AT_ID);       // ID of current object
            var sObjDesc = getAttributeValue(oObjDef, Constants.AT_DESC);   // Description of current object  
            var sObjType = oObjDef.Type();             
           // var sObjtype = getAttributeValue(oObjDef, Constants.AT_DESC);
            
            oOutput.TableRow();  
            oOutput.TableCell("", 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
            oOutput.TableCell(sObjName, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
            oOutput.TableCell(sObjID, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
            oOutput.TableCell(sObjDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
            //====================
            oOutput.TableCell(sObjType, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
            oOutput.TableCell(sObjDesc, 15, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
            //====================================
     
        }  
    }
    oOutput.EndTable("", 100, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
    oOutput.WriteReport();
     
    function getAttributeValue(oItem, nAttrType) {
        var oAttr = oItem.Attribute(nAttrType, nLocale);    // Attribute with the specified type number in the specified language
        var sAttrValue = oAttr.getValue();                  // Content of the attribute
        
        return sAttrValue;
    }
0
by adnan shahab
Posted on Mon, 08/02/2010 - 08:28

Inside your iteration for model just add these lines: (anywhere between line#47 - 84 depending upon where you want to appear the model graphics in your report.

writeModelGraphics(oOutput, oModel[i].Graphic(false, false, nLocale))

where writeModelGraphics is the helper function given below:

function writeModelGraphics(p_output, p_IModelPicture) {

            p_output.OutGraphic(p_IModelPicture, -1, p_output.getCurrentMaxWidth(), p_output.GetPageHeight() - p_output.GetTopMargin() - p_output.GetBottomMargin() -10)

    }

0
by Ahmed Alnasasrah Author
Posted on Mon, 08/02/2010 - 12:22

there is an error on it

0
by Eva Klein
Badge for 'Community Team' achievement
Posted on Wed, 08/25/2010 - 10:54

Hi Ahmed,

maybe the follwoing article will provide the answer to your question. If not, please explain in more detail what exactly you are planning to do so I can help you...

Regards,

Eva

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock