Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9738

Allow to send headers in WebServiceWorkItemHandler

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.59.0.Final
    • None
    • KieServer

    Description

      Allow to send headers in WebServiceWorkItemHandler

      Engineering solution

      In order to add a header, user should add arguments to WorkItem of the form:

      Header_<header_name> = <header_content>

      To add the name space, user should add an argument to WorkItem of the form:

      Header_Param_NS_<header_name>=<ns_value>

      In general, any additional parameter to be provided to the header in the future will follow this format:

      Header_Param_<param_name>_<header_name>=<param_value>

      If you want to include "" in the header parameter name, you need to change separator by providing a new one through system property _org.kie.workitem.ws.header.separator

      Escape policy

      By default, characters in the body of the request and header are escaped (or not) according to jaxb impl policy. If such policy is not the desired one, it can be changed for jaxb reference implementation in three different places:

      1. Globally, using system property org.jbpm.cxf.client.escapeHandler
      2. For body and all headers, using work item parameter named ESCAPE_HANDLER
      3. For a particular header, using work item parameter of the form:
        Header_Param_ESCAPE_<header_name>

      The expected value is the simple class name of one of the internal CharacterEscapeHandler implementations provided by Jaxb reference impl: MinimumEscapeHandler, NoEscapeHandler (to disable it completely) or DumpEscapeHandler

      Attachments

        Issue Links

          Activity

            People

              ftirados Francisco Javier Tirado Sarti
              rhn-support-abhumbe Abhijit Humbe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: