AS11 - B2B offering consists of numerous features that have been made available via commandline approach. Most of these are supplement to the already available User Interface based approach. One such is purging of runtime data.
The commandline purge option enables the users to purge the runtime data, based on various criteria. This is an ANT based command, provides the flexibility to selectively set the criteria to purge the runtime data.
Providing the command line option also enables the administrator to purge in bulk, without visiting the B2B UI, which can also be used for automation purpose
By default archival is turned on for purge activity. As a pre-requisite, the respective folder needs to be configured in database with the proper permission. When no filename is provided for archived data, the sysdate will be considered for filename.
Below are the various options to purge the runtime data
Normal
0
Option
ANT option
Message state
-Dmsgstate
Date range
-Dfromdate, -Dtodate
Format : dd/mm/yyyy hh:mm
AM/PM
Trading partner
-Dtp
Direction
-Ddirection
Message Type
-Dmsgtype
Agreement Name
-Dagreement
IdType/ value
-Didtype, -Didvalue
Archive
-Darchive
True/false
By default true
Archive file name
-Darchivename
File name (optional), will
be used when archive is set to true.
Normal
0
Note: When using
-Darchivename the value must be a unique file name. An existing file name used
with -Darchivename throws an exception
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Normal
0
Below are the few of ant
commands and various options.
Purge based on date range
and message state:
Normal
0
ant -f ant-b2b-util.xml b2bpurge -Dmode=RT
-Dfromdate="19/12/2009 1:04 AM" -Dtodate="19/12/2009 1:05
AM" -Dmsgstate=MSG_COMPLETE -Darchivename="filename.dmp"
Purge based on direction:
Normal
0
ant -f ant-b2b-util.xml b2bpurge -Dmode=RT
-Ddirection="OUTBOUND"
Normal
0
Purge based on agreement
Name:
Normal
0
ant -f ant-b2b-util.xml b2bpurge -Dmode=RT
-Dagreement="agreement_name"
Normal
0
Purge based on Trading
partner Name:
Normal
0
ant -f ant-b2b-util.xml b2bpurge -Dmode=RT -Dtp=GlobalChips
Normal
0
Purge based on Message
State:
Normal
0
ant -f ant-b2b-util.xml b2bpurge -Dmode=RT
-Dmsgstate="MSG_COMPLETE"
Normal
0
ant -f ant-b2b-util.xml b2bpurge -Dmode=RT
-Ddirection="OUTBOUND" -Dmsgstate="MSG_COMPLETE"