0 Replies Latest reply on Feb 2, 2016 5:39 AM by siplo

    Call remote api for complete work item failed

    siplo

      Hi,

       

      we try to use remote JMS api for communicate with JBPM. Everything is fine until we posted text with word "<TRUE>". JBPM started complaining :java.lang.RuntimeException: org.kie.remote.services.exception.KieRemoteServicesInternalError: Unable to serialize String to JaxbCommandsRequest

      and root cause was : org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 32; The element type "TRUE" must be terminated by the matching end-tag "</TRUE>".

       

      Like I said we use remote JMS API. Code for call "completeWorkItem" looks like this:

      Map<String, Object> r = new HashMap<>();

      a.put("errorMsg",errorMsg);

      getKieSession().getWorkItemManager().completeWorkItem(workItemId, r);

       

       

      Where errorMsg contains something like this:

      +- callOutput / error -- type / execute = <TRUE>

                             |- urlContext / port / http / CheckExistence = <TRUE>

       

      Easy solution is call some escape method. But why we have to do this ? I think it could be done by remote api or at least it could be mention in documentation. Do I miss something in how to use remote api ?

       

      Thanks for hint.