BPM, Workflow, and Case

 View Only
  • 1.  IBM BAW: How can I get Process Inspector to display my process error message?

    Posted 19 days ago

    I am trying to build a simple process in BAW that is supposed to work as follows:

    The process calls a service flow. When an error is detected in the service flow, the error is caught by the process, printed to the logs and then the process ends on an Error End Event so that the process instance status is set to 'Failed'. Here is how it looks like:


    Catching the error and printing it to the logs works as expected but when the process reaches the Error End Event and the process instance is set to failed, the instance error details shown in Process Inspector always say "No error message". Only the error code specified for the Error End Event is correctly reflected in the details:


    No matter what data or data type I hand over as Error Data in the Error Mapping section of the Error End Event properties, the output in Process Inspector is always the same: "No error message".

    Can anyone tell me how I could get the error message contained in my Error Data object into the instance error details displayed in Process Inspector?
    If it is not possible at all, I would like to understand why. Thanks in advance for your help!



    ------------------------------
    Gregor Schikorski
    ------------------------------


  • 2.  RE: IBM BAW: How can I get Process Inspector to display my process error message?

    Posted 15 days ago
    Hi Gregor,

    I think, as you are failing the instance using error end, the variable values are getting lost, even the default instance error value is getting lost.
    Till the step "Log Error Message", the values will be persisted but once the token reaches to Error End, the values will be lost.
    May I know the purpose of expecting the error in the process inspector ? 

    Thanks!


    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: IBM BAW: How can I get Process Inspector to display my process error message?

    Posted 15 days ago
    Hi Atanu,

    thanks for your reply.

    It would be good to have the error message in Process Inspector so the process administrators can see the reason for the failure. Reading the full error message, they could better understand the problem that has occurred and decide how the failed instance should be handled: whether or not a failed task should be repeated, whether the token must be moved or whether additional correction is required. Usually, these actions are taken in Process Inspector, so it would be great to have the info right there.

    Since the error code is successfully preserved when the instance reaches the Error End Event and can be displayed in Process Inspector, I would have assumed that the same was possible for the error message, which is just another process variable. Can you explain the difference?
    And what is the point of including a message tag in the instance error displayed in Process Inspector if the message is always empty?

    Best regards
    Gregor

    ------------------------------
    Gregor Schikorski
    ------------------------------



  • 4.  RE: IBM BAW: How can I get Process Inspector to display my process error message?

    Posted 12 days ago
    Hi Gregor,

    I could preserver the error by doing below implementation - 





    Error


    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 5.  RE: IBM BAW: How can I get Process Inspector to display my process error message?

    Posted 12 days ago

    Hi Atanu,

    thanks for your reply.

    I think the reason why it seems to work in your scenario is that you do not really catch the thrown runtime error. As you can see, the custom error code you defined ('MyErrorCode') is not mentioned in the Process Inspector's error details.

    The uncaught error will still lead to a failed process instance and in such scenarios (uncaught runtime errors), there is indeed an error message in Process Inspector. However, it never works for custom errors defined on an Error End Event in a process.

    Surprisingly, if I take my sample process and use it as a linked process within another process, the enclosing process can catch and consume the custom error code AND custom error message delivered by the linked process via the Error End Event. Only Process Inspector is apparently not capable of consuming the custom error message. I think this is a product deficiency.

    Best regards
    Gregor



    ------------------------------
    Gregor Schikorski
    ------------------------------



  • 6.  RE: IBM BAW: How can I get Process Inspector to display my process error message?

    Posted 12 days ago
    Hi Gregor,

    Yes, you are correct, I way I implemented, its not capturing the specific error.
    I also think the product does not support this facility. We are trying to set an error code and a message at the error end event and there is no one to consume the error message from the error end event. Ideally it should not have considered the error code set from the last error end event. I think it is picking the error code up because it's not a mapping, it's directly getting mapped to the process instance's error code but the error data is a kind of mapping where in this case there is no right hand side mapping. Although this is my guess. I tried setting a variable at the pre execution of the error end, that didn't pick the value as well.
    So, kind of limitation here.


    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------