BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Script adaptor for adding document

    Posted Wed August 26, 2020 09:40 PM

    I have a script adaptor to take take the values of common case properties to document properties. I have a couple document classes in the solution, and for this case type, I would like to set the default document class for it but it doesn't work.

    Here is my code snippet:

    //--- Check if the solution document type filtering is in the case information widget configuration

    var filterOn = widgetAttrs.getItemValue("filterDocumentTypes");

    if (filterOn) {

    var currSolution = caseEdt.getCase().caseType.getSolution();

    currSolution.retrieveDocumentTypes(function(docTypes) {

    var dcList = null;

    if (docTypes && docTypes.length > 0) {

    dcList = new Teamspace({

    repository: parentFolder.repository,

    name: parentFolder.repository.name,

    type: Teamspace.RUNTIME,

    addAllowAllClasses: false,

    contentClasses: docTypes,

    defaultClass: null

    });

    }

    //add default document class

    addContentItemDialog.setDefaultContentClass("Petition Document");

    //--- Show the add document dialog

    addContentItemDialog.show(parentFolder.repository, parentFolder, true, false, null, dcList, false, null, true);

    });

    } else {

    // set default document class

    addContentItemDialog.setDefaultContentClass("Petition Document");

    //--- Show the add document dialog

    addContentItemDialog.show(parentFolder.repository, parentFolder, true, false, null, null, false, null, true);

    }



    #CaseManager
    #Support
    #SupportMigration


  • 2.  RE: Script adaptor for adding document

    Posted Thu September 17, 2020 09:49 AM


  • 3.  RE: Script adaptor for adding document

    Posted Thu September 17, 2020 01:20 PM

    I did and it still didn't work

    addContentItemDialog.setDefaultContentClass("ICD_PetitionDoc");

    Thanks!



    #CaseManager
    #Support
    #SupportMigration