We have created a "What you see What you get" report to output the information contained in a Process Model (modelled as an EPC) to a word / pdf document. This report lists out all the functions (process steps) and the corresponding attributes of that function. The challenge that we are facing is that we cannot get the output to order itself as per the flow of the process. The best we have done so far is to order the output based on the physical location of the function object in the model. We are trying to build some logic to order the output (Ascending / Descending) according the "Identifier" attribute of the function objects in the EPC model. Has anyone done this or something similar successfully? We could sure use the help.
Dear Venky,
I had done ordering based on object identifier in code mode not in design mode:
var g_loc=Context.getSelectedLanguage();
var oModel=ArisData.getSelectedModels();
function main(){
var goutputfile=Context.createOutputObject() ;
goutputfile.BeginTable(100, Constants.C_GREY_80_PERCENT, - 1, 8, 0);
goutputfile.TableRow();
goutputfile.TableCell("Object Name",50,"Arial",10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
goutputfile.TableCell("Object Identifier",50,"Arial",10, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);
for(var i=0;i objectB.toString()) return 1;
if(objectA.toString() objectB.toString()) return -1;
return 0;
}
main();