Purge Samples

Using the following sample, you can create an MLXML document for purge:

<?xml version="1.0" encoding="UTF-8"?>
<Message externalControlNumber="2012-10-13 17:36:54+05:30" externalVersion="2.6" language="en" messageType="Production" mlxmlVersion="2.6" protocol="mlXML" timestamp="1350130014945">
  <Header>
    <MessageHeader origin="Receiver" role="Supplier">
      <Enterprise>
        <PartyID>
          <PartyName>Smith</PartyName>
          <DBID>34000</DBID>
          <ShortName>Smith</ShortName>
        </PartyID>
      </Enterprise>
      <Organization>
        <PartyID>
          <PartyName>Smith</PartyName>
          <DBID>34009</DBID>
        </PartyID>
      </Organization>
      <Member>
        <PartyID>
          <PartyName>0040885000023</PartyName>
          <DBID>46853</DBID>
        </PartyID>
      </Member>
      <Credential domain="GLN">
        <Identity>0040885000023</Identity>
      </Credential>
    </MessageHeader>
    <MessageHeader origin="Sender" role="Supplier">
      <Enterprise>
        <PartyID>
          <PartyName>Smith</PartyName>
          <DBID>34000</DBID>
          <ShortName>Smith</ShortName>
        </PartyID>
      </Enterprise>
      <Organization>
        <PartyID>
          <PartyName>Smith</PartyName>
          <DBID>34009</DBID>
        </PartyID>
      </Organization>
      <Member>
        <PartyID>
          <PartyName>0040885000023</PartyName>
          <DBID>46853</DBID>
        </PartyID>
      </Member>
      <Credential domain="GLN">
        <Identity>0040885000023</Identity>
      </Credential>
    </MessageHeader>
  </Header>
  <Body>
    <Document subtype="PurgeHistory" type="Purge">
      <BusinessDocument>
        <CatalogAction>
          <CatalogActionHeader>
            <ThisDocID>
              <DocID>
                <IDNumber>39009</IDNumber>
                <Agency>
                  <Code>
                    <CodeType>Agency</CodeType>
                    <Value/>
                    <Normal>Seller</Normal>
                  </Code>
                </Agency>
              </DocID>
            </ThisDocID>
            <Date>
              <Code>
                <CodeType>DateTime</CodeType>
                <Value/>
                <Normal>Timestamp</Normal>
              </Code>
              <DateValue>
                <Value>2012-10-13 17:36:54+05:30</Value>
              </DateValue>
              <TimeZone>
                <Value>IST</Value>
              </TimeZone>
              <Normal>2012-10-13 17:36:54+05:30</Normal>
            </Date>
            <MasterCatalog>
              <RevisionID>
                <BaseName>CUSTOMER</BaseName>
              </RevisionID>
              <Extension name="RetentionUOM">
                <Value>MONTH</Value>
              </Extension>
              <Extension name="RetentionUnits">
                <Value>8</Value>
              </Extension>
              <Extension name="IncludeRecords">
                <Value>Yes</Value>
              </Extension>
              <Extension name="VersionsToRetain">
                <Value>4</Value>
              </Extension>
              <Extension name="PurgeEnterpriseOption">
                <Value/>
              </Extension>
            </MasterCatalog>
          </CatalogActionHeader>
        </CatalogAction>
      </BusinessDocument>
      <OriginalDocument/>
    </Document>
  </Body>
</Message>

Sample 2

Using the following sample, you can initiate purge for all enterprises by sending MLXML message on Q_ECM_CORE_WORKFLOW queue directly.

<?xml version="1.0" encoding="UTF-8"?>
<Message externalControlNumber="2012-10-19 11:01:35+05:30" externalVersion="2.6" language="en" messageType="Production" mlxmlVersion="2.6" protocol="mlXML" timestamp="1350624696092">
  <Header>
    <MessageHeader origin="Receiver" role="Supplier">
      <Enterprise>
        <PartyID>
          <PartyName>TIBCOCIM</PartyName>
          <DBID>0</DBID>
          <ShortName>velosel</ShortName>
        </PartyID>
      </Enterprise>
      <Organization>
        <PartyID>
          <PartyName>TIBCOCIM</PartyName>
          <DBID>1</DBID>
        </PartyID>
      </Organization>
      <Member>
        <PartyID>
          <PartyName>GLOBAL</PartyName>
          <DBID>32881</DBID>
        </PartyID>
      </Member>
      <Credential domain="ZZ">
        <Identity>GLOBAL</Identity>
      </Credential>
    </MessageHeader>
    <MessageHeader origin="Sender" role="Supplier">
      <Enterprise>
        <PartyID>
          <PartyName>TIBCOCIM</PartyName>
          <DBID>0</DBID>
          <ShortName>velosel</ShortName>
        </PartyID>
      </Enterprise>
      <Organization>
        <PartyID>
          <PartyName>TIBCOCIM</PartyName>
          <DBID>1</DBID>
        </PartyID>
      </Organization>
      <Member>
        <PartyID>
          <PartyName>GLOBAL</PartyName>
          <DBID>32881</DBID>
        </PartyID>
      </Member>
      <Credential domain="ZZ">
        <Identity>GLOBAL</Identity>
      </Credential>
    </MessageHeader>
  </Header>
  <Body>
    <Document subtype="PurgeHistory" type="Purge">
      <BusinessDocument>
        <CatalogAction>
          <CatalogActionHeader>
            <ThisDocID>
              <DocID>
                <IDNumber>39000</IDNumber>
                <Agency>
                  <Code>
                    <CodeType>Agency</CodeType>
                    <Value/>
                    <Normal>Seller</Normal>
                  </Code>
                </Agency>
              </DocID>
            </ThisDocID>
            <Date>
              <Code>
                <CodeType>DateTime</CodeType>
                <Value/>
                <Normal>Timestamp</Normal>
              </Code>
              <DateValue>
                <Value>2012-10-19 11:01:35+05:30</Value>
              </DateValue>
              <TimeZone>
                <Value>IST</Value>
              </TimeZone>
              <Normal>2012-10-19 11:01:35+05:30</Normal>
            </Date>
            <MasterCatalog>
              <RevisionID>
                <BaseName/>
                <Version/>
                <DBID/>
              </RevisionID>
              <Extension name="RetentionUOM">
                <Value>MONTH</Value>
              </Extension>
              <Extension name="RetentionUnits">
                <Value>10</Value>
              </Extension>
              <Extension name="IncludeRecords">
                <Value>No</Value>
              </Extension>
              <Extension name="VersionsToRetain">
                <Value>1</Value>
              </Extension>
              <Extension name="PurgeEnterpriseOption">
                <Value>ALL</Value>
              </Extension>
            </MasterCatalog>
          </CatalogActionHeader>
        </CatalogAction>
      </BusinessDocument>
      <OriginalDocument/>
    </Document>
  </Body>
</Message>

Sample 3

Using the following sample, you can initiate purge for specific enterprise sending MLXML message on Q_ECM_CORE_WORKFLOW queue directly.

<?xml version="1.0" encoding="UTF-8"?>
<Message externalControlNumber="2012-10-13 17:36:54+05:30" externalVersion="2.6" language="en" messageType="Production" mlxmlVersion="2.6" protocol="mlXML" timestamp="1350130014945">
  <Header>
    <MessageHeader origin="Receiver" role="Supplier">
      <Enterprise>
        <PartyID>
          <PartyName>John</PartyName>
          <DBID>34000</DBID>
          <ShortName>John</ShortName>
        </PartyID>
      </Enterprise>
      <Organization>
        <PartyID>
          <PartyName>John</PartyName>
          <DBID>34009</DBID>
        </PartyID>
      </Organization>
      <Member>
        <PartyID>
          <PartyName>0040885000023</PartyName>
          <DBID>46853</DBID>
        </PartyID>
      </Member>
      <Credential domain="GLN">
        <Identity>0040885000023</Identity>
      </Credential>
    </MessageHeader>
    <MessageHeader origin="Sender" role="Supplier">
      <Enterprise>
        <PartyID>
          <PartyName>John</PartyName>
          <DBID>34000</DBID>
          <ShortName>John</ShortName>
        </PartyID>
      </Enterprise>
      <Organization>
        <PartyID>
          <PartyName>John</PartyName>
          <DBID>34009</DBID>
        </PartyID>
      </Organization>
      <Member>
        <PartyID>
          <PartyName>0040885000023</PartyName>
          <DBID>46853</DBID>
        </PartyID>
      </Member>
      <Credential domain="GLN">
        <Identity>0040885000023</Identity>
      </Credential>
    </MessageHeader>
  </Header<Body>
  <Document subtype="PurgeHistory" type="Purge">
    <BusinessDocument>
      <CatalogAction>
        <CatalogActionHeader>
          <ThisDocID>
            <DocID>
              <IDNumber>39000</IDNumber>
              <Agency>
                <Code>
                  <CodeType>Agency</CodeType>
                  <Value/>
                  <Normal>Seller</Normal>
                </Code>
              </Agency>
            </DocID>
          </ThisDocID>
          <Date>
            <Code>
              <CodeType>DateTime</CodeType>
              <Value/>
              <Normal>Timestamp</Normal>
            </Code>
            <DateValue>
              <Value>2012-10-19 11:01:35+05:30</Value>
            </DateValue>
            <TimeZone>
              <Value>IST</Value>
            </TimeZone>
            <Normal>2012-10-19 11:01:35+05:30</Normal>
          </Date>
          <MasterCatalog>
            <RevisionID>
              <BaseName/>
              <Version/>
              <DBID/>
            </RevisionID>
            <Extension name="RetentionUOM">
              <Value>MONTH</Value>
            </Extension>
            <Extension name="RetentionUnits">
              <Value>10</Value>
            </Extension>
            <Extension name="IncludeRecords">
              <Value>No</Value>
            </Extension>
            <Extension name="VersionsToRetain">
              <Value>1</Value>
            </Extension>
            <Extension name="PurgeEnterpriseOption">
              <Value>ALL</Value>
            </Extension>
          </MasterCatalog>
        </CatalogActionHeader>
      </CatalogAction>
    </BusinessDocument>
    <OriginalDocument/>
  </Document>
</Body>
</Message>