Dilcarina Duarte's picture

Hello community!

I'm trying to create an object pool (BPMN model).

for(j = 0; j < modelList.length; j++){
            var type = modelList[j].Type();
            var name = modelList[j].Name(num);
            if( (modelList[j].BuildGraph(true)==true) && (modelList[j].Type() == 'BPMN collaboration diagram (BPMN 2.0)')){
                  //create a pool object within the 'modelList[j]' model

I've tried the function "CreateObjDef ( int ObjType, String sName, int localeId )" but says I can't use it for the 'modelList[j]' model.

Does anyone know the function to create objects?

Thank you!