How to get task result message of status

Hi Team,

I need Message of taskresults as attached in screenshot via rule.

via below rule it gives the status only like success, fail or terminated but I need message as attached in screenshot.

    CompletionStatus completionStatus = taskResultObj.getCompletionStatus();
        System.out.println("CompletionStatus::::"+CompletionStatus);
        lastRunStatus = completionStatus != null ? completionStatus.toString() : "Unknown";

Hi @amanKsingh,

try with taskResultObj.getMessages(). It return a list of Message.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.