Document Keyword Replace Service

Document Keyword Replace Service replaces hex or string values with another hex or string
Mirjana's picture

Document Keyword Replace Service - example

 

  • How to add CRLF after tilde (~) in order to make a segments separated by new lines rather than a stream:
 
<process name="default">
          <sequence>
                   <operation name="Document Keyword Replace">
                             <participant name="EMEA_DocKeywordReplace"/>
                             <output message="DocKeywordReplaceInputMessage">
                                      <assign to="." from="*"/>
                                      <assign to="literal_mode">true</assign>
                                      <assign to="keyword1">7E</assign>
                                      <assign to="replace1">7E0D0A</assign>
                                      <assign to="keywordtype1">hex</assign>
                                      <assign to="replacetype1">hex</assign>
                             </output>
                             <input message="inmsg">
                                      <assign to="." from="*"/>
                             </input>
                   </operation>
          </sequence>
</process>
 
  • Remove CRLF from a document:
 
<process name="default">
          <sequence>
                   <operation name="Document Keyword Replace">
                             <participant name="EMEA_DocKeywordReplace"/>
                             <output message="DocKeywordReplaceInputMessage">
                                      <assign to="." from="*"/>
                                      <assign to="literal_mode">true</assign>
                                      <assign to="keyword1">0D0A</assign>
                                      <assign to="replace1"  to="string('')></assign>
                                      <assign to="keywordtype1">hex</assign>
                             </output>
                             <input message="inmsg">
                                      <assign to="." from="*"/>
                             </input>
                   </operation>
          </sequence>
</process>
 
 
Syndicate content