2 Replies Latest reply on Jul 5, 2011 6:14 AM by d.sizov

    Result Mapping and fail action (HumanTask)

    d.sizov

      I want to use the"fail" and the "complete" actions on HumanTask. How can I set the "result mapping" data in the "fail" case? I have NullPointerException, If I use setContent method of FaultData class. But Result Mapping work correctly if i use the "complete" action and setContent method of ContentData class.

       

      sorry for my bad english

        • 1. Re: Result Mapping and fail action (HumanTask)
          krisverlaenen

          The WSHumanTaskHandler (and its brother when using persistence, CommandBasedWSHumanTaskHandler) indeed do not copy the fault data.  It wouldn't be difficult however to copy this data as a new "Fault" result parameter of the work item.  Would this be sufficient for your case?

           

          If so, could you open an issue on the jBPM JIRA and attach this information.  If you could give a try at changing the WSHumanTaskHandler implementation to support this, and attach the improvements, that would even be better

           

          Kris

          • 2. Re: Result Mapping and fail action (HumanTask)
            d.sizov

            So if I can't get Fault Data, how can I detect failed tasks in my BPMN? I want to use Diverge Gateway according to HumanTask execution results (complete or fail)