Hi,
I want to create a EPC Row display model from a EPC model and place the functions against there respective work roles based on connection type in various swimlanes or rows.
Can any one suggest how this can be done or which particular functions can be used to add rows / swimlanes in a EPC row display model.
Thanks in advance.
Torsten Haase on
Hi Sunil,
you can either create a EPC Row model from scratch, create all lanes with the correct size and place the occs into it. (because report cannot create/move lanes if the model has any content). This is only the second best solution...
The best way would be to use model generation. Starting from an EPC, your code could look like the following:
function generateRowModel(oModel) { var modelGeneration = Context.getComponent("ModelGeneration") if(modelGeneration!=null) { var options = modelGeneration.createModelGenerationOptions(); options.setExpandModelDepth(0) options.setExpandModelDepthForProcesInterfaces(0) options.onlyCxnsWithOccs(true) options.multipleOccs(true) options.hideProcessInterfaces(false) var models = ArisData.createTypedArray(Constants.CID_MODEL) models.push(oModel) modelNewRowEPC = modelGeneration.generateModel(models, oModel.Name(g_nLoc),Constants.MT_EEPC_ROW, oModel.Group(), options) if(modelNewRowEPC!=null) { modelNewRowEPC.setAttrOccHandling(Constants.ATTROCCHANDLING_BREAKATTR) return modelNewRowEPC; } } return null; //model generation failed }BR, Torsten