BPM, Workflow, and Case

 View Only
Expand all | Collapse all

Case Manager Custom Action Not Enabled

  • 1.  Case Manager Custom Action Not Enabled

    Posted Mon December 04, 2023 12:36 PM

    Hi,

    Background: I implemented a custom action called "PrintCaseInformation". I put below additional configuration in the "PrintCaseInformation.java". So that I can use this action in the Case Builder.

    public JSONObject getAdditionalConfiguration(Locale locale) {
    		 String JSONString = "{\"ICM_ACTION_COMPATIBLE\": true,\"context\": null,\"name\": \"Print Case Information\",\"description\": \"This action fetches and shows Case Properties \",\"properties\": [{\"id\": \"label\",\"title\": \"label\",\"defaultValue\": \"\",\"type\": \"string\",\"isLocalized\": false},{\"id\": \"message\",\"title\": \"message\",\"defaultValue\": \"\",\"type\": \"string\",\"isLocalized\": false}]}";
    		    try
    		    {
    		      return JSONObject.parse(JSONString);
    		    }
    		    catch (IOException e)
    		    {
    		      e.printStackTrace();
    		    }
    		    return null;
    	}

    Result: I could able to view this action in the Case Builder(Case Details Page --> Case Toolbar drop down). I assigned this action to Case Details Page. Deployed the solution.

    Issue: The tool bar is visible in the case details page of a case in case manager client. But it is not enabled.

    Testing: I assigned the same action for SearchResultsContextMenu. I retrieved some folders using Folder search. This action is enabled and works.

    Can anyone please suggest me what is the root cause of the issue.



    ------------------------------
    RAVI KUMAR
    ------------------------------


  • 2.  RE: Case Manager Custom Action Not Enabled

    Posted Tue December 05, 2023 11:51 AM

    Hi,

    I fixed it by below method.

    public boolean isGlobal() {
    		return true;
    	}


    ------------------------------
    RAVI KUMAR
    ------------------------------