BPDocRx Advanced

DTPID.bp
GETADD.bp
OFMAIL.bp
SAVEDOC.bp
TP_BP.bp

#######################################################
Go To Top

Documentation for BP file DTPID.bp

Rule name: ADDDateTime
Rule name: ADDBPID

/Label SS: GenericDateTimeBPIDss
|
| /Label CS:
| |
| | if count(//MaiCoD) = 0 is true then go to GENDT
| |
| | /Label SS: GENDT
| | |
| | | The service TimestampUtilService is configured as follows:
| | | Configure Input parameter action with value current_time
| | | Configure Input parameter format with value yyyyMMdd
| | | Configure Input parameter scale with value day
| | | Get all Input values from ProcessData
| | | This service is configured for Messages first then ProcessData.
| | | Values from ProcessData may override those listed above, and/or add to those not listed.
| | | Output all available values to ProcessData
| | | Set MaiCoD equal to //time/text()
| | |
| | | The service TimestampUtilService is configured as follows:
| | | Configure Input parameter action with value current_time
| | | Configure Input parameter format with value HHmmss
| | | Configure Input parameter scale with value sec
| | | Get all Input values from ProcessData
| | | This service is configured for Messages first then ProcessData.
| | | Values from ProcessData may override those listed above, and/or add to those not listed.
| | | Output all available values to ProcessData
| | | Set MaiCoT equal to //time/text()
| | | Set MaiCoDT equal to concat(//MaiCoD/text(),’_',//MaiCoT/text())
| | |
| | \End Label SS
| |
| \End Label CS
|
| /Label CS:
| |
| | if count(//WFD_NAME) = 0 is true then go to GenericBPID
| |
| | /Label SS: GenericBPID
| | |
| | | The service BPMetaDataInfoService is configured as follows:
| | | Get all Input values from ProcessData
| | | Output all available values to ProcessData
| | |
| | \End Label SS
| |
| \End Label CS
|
\End Label SS

#####################################################################
Summary information for BP DTPID

Rules that are used in this BP:
Rule ADDDateTime: count(//MaiCoD) = 0
Rule ADDBPID: count(//WFD_NAME) = 0

Elements and parameters that are updated:
Element MaiCoT was set to the value //time/text()
Element MaiCoDT was set to the value concat(//MaiCoD/text(),’_',//MaiCoT/text())
Element MaiCoD was set to the value //time/text()

#######################################################
Go To Top

Documentation for BP file GETADD.bp

Rule name: ChangeDirectory
Rule name: Error_NoFiles
Rule name: GetFiles
Rule name: RegularFile
Rule name: ArchiveFile
Rule name: DeleteRemoteFile
Rule name: MaiCoFile
Rule name: MoreMaiCofiles
Rule name: FindAndReplace
Rule name: ReplaceValue
Rule name: NoFileFound

/Label SS: SEQSTART
|
| The service InlineInvokeBusinessProcessService is configured as follows:
| Get all Input values from ProcessData
| Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| Configure Input parameter WFD_NAME with value DTPID
| Output all available values to ProcessData
|
| The service LightweightJDBCAdapterQuery is configured as follows:
| Get all Input values from ProcessData
| Configure Input parameter param1 with value VALUE1
| Configure Input parameter param2 with value //INLINE_WFD_0/WFD_NAME/text()
| Configure Input parameter param3 with value VALUE3
| Configure Input parameter paramtype1 with value String
| Configure Input parameter paramtype2 with value String
| Configure Input parameter paramtype3 with value String
| Configure Input parameter pool with value mssqlPool
| Configure Input parameter query_type with value SELECT
| Configure Input parameter result_name with value RESULT
| Configure Input parameter row_name with value ROW
| Configure Input parameter sql with value select SDI, RRI, DTN, IDX7, VAL1, FLD5, VALH, FLDB,
VAL3, KEYI, IDXD, VALF from SRC1 IT where SRCKEY = ? and SDI = ? and SRCV =
( select VE.DV from FLDX VE where VE.KEYVAL = ? )

| Output will overwrite PrimaryDocument
|
| Move PrimaryDocument to ProcessData.
|
| The service ReleaseService is configured as follows:
| Remove all occurances of PrimaryDocument from ProcessData
|
| The service SFTPClientBeginSession is configured as follows:
| Get all Input values from ProcessData
| Configure Input parameter ProfileId with value //RESULT/ROW/IDX7/text()
| Configure Input parameter SFTPClientAdapter with value SFTPClientAdapter
| Output all available values to ProcessData
|
| /Label CS: Choice Start
| |
| | if string-length(//RESULT/ROW/VAL1/text()) > 0 is true then go to ChangeDirectorySS
| |
| | /Label SS: ChangeDirectorySS
| | |
| | | The service SFTPClientCd is configured as follows:
| | | Get all Input values from ProcessData
| | | Configure Input parameter Directory with value //RESULT/ROW/VAL1/text()
| | | Configure Input parameter SessionToken with value //SessionToken/text()
| | | Output all available values to ProcessData
| | |
| | \End Label SS
| |
| \End Label CS
| Set cnt_MaiCofile equal to count(//MaiCoFile)
|
| /Label SS: CheckMaiCofileSS
| |
| | /Label CS: MaiCofileCS
| | |
| | |
| | | /Label SS: SeqStart_file
| | | | Set /ProcessData/RESULT/ROW/FLD5 equal to //MaiCoFile((//cnt_MaiCofile/text()))/text()
| | | | Set cnt_MaiCofile equal to cnt_MaiCofile – 1
| | | |
| | | \End Label SS
| | |
| | \End Label CS
| |
| | The service SFTPClientList is configured as follows:
| | Configure Input parameter RemoteFileName with value //RESULT/ROW/FLD5/text()
| | Configure Input parameter SessionToken with value //SessionToken/text()
| | Get all Input values from ProcessData
| | This service is configured for Messages first then ProcessData.
| | Values from ProcessData may override those listed above, and/or add to those not listed.
| | Output all available values to ProcessData
| |
| | /Label CS: Choice Start
| | |
| | | if //RESULT/ROW/FLDB/text() = “no” and count(//Files/File/Type) = 0 is true then go to MissingFile
| | |
| | | /Label SS: MissingFile
| | | |
| | | | The service BPExceptionService is configured as follows:
| | | | Configure Input parameter exceptionCode with value 3
| | | | Configure Input parameter statusReport with value No file to get
| | | | Get all Input values from ProcessData
| | | | This service is configured for Messages first then ProcessData.
| | | | Values from ProcessData may override those listed above, and/or add to those not listed.
| | | | Output all available values to ProcessData
| | | |
| | | \End Label SS
| | |
| | \End Label CS
| | Set fptr equal to count(//Files/File)
| |
| | /Label CS: GetAnother
| | |
| | | if //fptr/text() != “0″ is true then go to NextFile
| | |
| | | /Label SS: NextFile
| | | |
| | | | /Label CS: Choice Start
| | | | |
| | | | | if /ProcessData/Files/File((//fptr/text()))/Type/text() = “Regular” is true then go to Get
| | | | |
| | | | | /Label SS: Get
| | | | | |
| | | | | | The service SFTPClientGet is configured as follows:
| | | | | | Configure Input parameter RemoteFileName with value /ProcessData/Files/File((//fptr/text()))
/Name/text()

| | | | | | Configure Input parameter SessionToken with value //SessionToken/text()
| | | | | | Get all Input values from ProcessData
| | | | | | This service is configured for Messages first then ProcessData.
| | | | | | Values from ProcessData may override those listed above, and/or add to those not listed.
| | | | | | Output all available values to ProcessData
| | | | | |
| | | | | | /Label SS: Sequence Start
| | | | | | | Set key1 equal to substring-before(//VALF/text(), “|”)
| | | | | | | Set type1 equal to bin
| | | | | | |
| | | | | | | /Label CS: Choice Start
| | | | | | | |
| | | | | | | | if string-length(substring-after(//VALF/text(), “|”)) > 0 is true then go to ReplaceVal
| | | | | | | |
| | | | | | | | /Label SS: ReplaceVal
| | | | | | | | | Set r1 equal to substring-after(//VALF/text(), “|”)
| | | | | | | | | Set rtype1 equal to hex
| | | | | | | | |
| | | | | | | | \End Label SS
| | | | | | | |
| | | | | | | | if string-length(substring-after(//VALF/text(), “|”)) > 0 is not true then go to RemoveVal
| | | | | | | |
| | | | | | | | /Label SS: RemoveVal
| | | | | | | | | Set r1 equal to string(”)
| | | | | | | | | Set rtype1 equal to string
| | | | | | | | |
| | | | | | | | \End Label SS
| | | | | | | |
| | | | | | | \End Label CS
| | | | | | |
| | | | | | | The service SyncEngine_DocKeywordReplace is configured as follows:
| | | | | | | Get all Input values from ProcessData
| | | | | | | Configure Input parameter literal_bufferSize with value 512
| | | | | | | Configure Input parameter literal_mode with value yes
| | | | | | | Configure Input parameter literal_readAheadSize with value 256
| | | | | | | Output all available values to ProcessData
| | | | | | |
| | | | | | | The service ReleaseService is configured as follows:
| | | | | | | Remove all occurances of DocId from ProcessData
| | | | | | |
| | | | | | \End Label SS
| | | | | |
| | | | | |
| | | | | | The service MailboxAdd is configured as follows:
| | | | | | Get all Input values from ProcessData
| | | | | | Configure Input parameter MailboxPath with value //RESULT/ROW/VALH/text()
| | | | | | Configure Input parameter MessageName with value /ProcessData/Files/File
((//fptr/text()))/Name/text()

| | | | | | Output all available values to ProcessData
| | | | | |
| | | | | | /Label CS: Choice Start
| | | | | | |
| | | | | | | if string-length(//RESULT/ROW/VAL3/text()) > 0 is true then go to SaveFile
| | | | | | |
| | | | | | | /Label SS: SaveFile
| | | | | | | | Set MaiCoSaveDir equal to //RESULT/ROW/VAL3/text()
| | | | | | | | Set MaiCoSaveSuf equal to //RESULT/ROW/KEYI/text()
| | | | | | | | Set MaiCoSavePre equal to /ProcessData/Files/File((//fptr/text()))/Name/text()
| | | | | | | |
| | | | | | | | The service InlineInvokeBusinessProcessService is configured as follows:
| | | | | | | | Get all Input values from ProcessData
| | | | | | | | Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| | | | | | | | Configure Input parameter WFD_NAME with value SAVEDOC
| | | | | | | | Output all available values to ProcessData
| | | | | | | |
| | | | | | | \End Label SS
| | | | | | |
| | | | | | \End Label CS
| | | | | |
| | | | | | /Label CS: Choice Start
| | | | | | |
| | | | | | | if //IDXD/text() = “yes” is true then go to DelFi
| | | | | | |
| | | | | | | /Label SS: DelFi
| | | | | | | |
| | | | | | | | The service SFTPClientDelete is configured as follows:
| | | | | | | | Get all Input values from ProcessData
| | | | | | | | Configure Input parameter RemoteFileName with value /ProcessData/Files/File((//fptr/text()))
/Name/text()

| | | | | | | | Configure Input parameter SessionToken with value //SessionToken/text()
| | | | | | | | Output all available values to ProcessData
| | | | | | | |
| | | | | | | \End Label SS
| | | | | | |
| | | | | | \End Label CS
| | | | | |
| | | | | | The service ReleaseService is configured as follows:
| | | | | | Remove all occurances of PrimaryDocument from ProcessData
| | | | | |
| | | | | | The service ReleaseService is configured as follows:
| | | | | | Remove all occurances of DocumentId from ProcessData
| | | | | |
| | | | | \End Label SS
| | | | |
| | | | \End Label CS
| | | | Set fptr equal to fptr – 1
| | | | Repeat service GetMore will loop back to Label GetAnother
| | | |
| | | \End Label SS
| | |
| | \End Label CS
| |
| | /Label CS: MoreMaiCofileCS
| | |
| | | if number(//cnt_MaiCofile/text()) > 0 is true then go to MoreMaiCofileSS
| | |
| | | /Label SS: MoreMaiCofileSS
| | | |
| | | | The service ReleaseService is configured as follows:
| | | | Remove all occurances of Files from ProcessData
| | | | Set /ProcessData/RESULT/ROW/FLD5 equal to //MaiCoFile((//cnt_MaiCofile/text()))/text()
| | | | Set cnt_MaiCofile equal to cnt_MaiCofile – 1
| | | | Repeat service CheckMaiCofileSS will loop back to Label CheckMaiCofileSS
| | | |
| | | \End Label SS
| | |
| | \End Label CS
| |
| \End Label SS
|
|
| The service SFTPClientEndSession is configured as follows:
| Configure Input parameter SessionToken with value //SessionToken/text()
| Get all Input values from ProcessData
| This service is configured for Messages first then ProcessData.
| Values from ProcessData may override those listed above, and/or add to those not listed.
| Output all available values to ProcessData
|
| /******** Begin OnFault **********
| |
| | /Label SS:
| | |
| | | /Label CS:
| | | |
| | | | if (/ProcessData/ERROR_SERVICE/ADV_STATUS/text() = “No Such File”) and (//FLDB/text() = “yes”)
(//FLDB/text() = “yes”) is true then go to NoEmail
| | | |
| | | | /Label SS: NoEmail
| | | | |
| | | | | The service SFTPClientEndSession is configured as follows:
| | | | | Get all Input values from ProcessData
| | | | | Configure Input parameter SessionToken with value //SessionToken/text()
| | | | | Output all available values to ProcessData
| | | | |
| | | | \End Label SS
| | | |
| | | | if (/ProcessData/ERROR_SERVICE/ADV_STATUS/text() = “No Such File”) and (//FLDB/text() = “yes”)
(//FLDB/text() = “yes”)is not true then go to Email
| | | |
| | | | /Label SS: Email
| | | | |
| | | | | The service InlineInvokeBusinessProcessService is configured as follows:
| | | | | Get all Input values from ProcessData
| | | | | Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| | | | | Configure Input parameter WFD_NAME with value OFMAIL
| | | | | Output all available values to ProcessData
| | | | |
| | | | | The service SFTPClientEndSession is configured as follows:
| | | | | Get all Input values from ProcessData
| | | | | Configure Input parameter SessionToken with value //SessionToken/text()
| | | | | Output all available values to ProcessData
| | | | |
| | | | \End Label SS
| | | |
| | | \End Label CS
| | |
| | \End Label SS
| |
| \******** End OnFault **********
|
\End Label SS

#####################################################################
Summary information for BP GETADD

Rules that are used in this BP:
Rule ReplaceValue: string-length(substring-after(//VALF/text(), “|”)) > 0
Rule DeleteRemoteFile: //IDXD/text() = “yes”
Rule RegularFile: /ProcessData/Files/File((//fptr/text()))/Type/text() = “Regular”
Rule NoFileFound: (/ProcessData/ERROR_SERVICE/ADV_STATUS/text() = “No Such File”) and (//FLDB/text() = “yes”)
(//FLDB/text() = “yes”)
Rule ArchiveFile: string-length(//RESULT/ROW/VAL3/text()) > 0
Rule ChangeDirectory: string-length(//RESULT/ROW/VAL1/text()) > 0
Rule FindAndReplace: contains(//VALF/text(), “|” )
Rule MoreMaiCofiles: number(//cnt_MaiCofile/text()) > 0
Rule MaiCoFile: (number(//cnt_MaiCofile/text()) > 0) and (string-length(//FLD5/text()) = 0)
Rule GetFiles: //fptr/text() != “0″
Rule Error_NoFiles: //RESULT/ROW/FLDB/text() = “no” and count(//Files/File/Type) = 0

Elements and parameters that are updated:
Element cnt_MaiCofile was set to the value count(//MaiCoFile)
Element cnt_MaiCofile was set to the value cnt_MaiCofile – 1
Element type1 was set to the value bin
Element fptr was set to the value count(//Files/File)
Element /ProcessData/RESULT/ROW/FLD5 was set to the value //MaiCoFile((//cnt_MaiCofile/text()))/text()
Element MaiCoSaveSuf was set to the value //RESULT/ROW/KEYI/text()
Element rtype1 was set to the value hex
Element r1 was set to the value substring-after(//VALF/text(), “|”)
Element key1 was set to the value substring-before(//VALF/text(), “|”)
ProcessData was updated by DocToDOM(PrimaryDocument)
Element MaiCoSavePre was set to the value /ProcessData/Files/File((//fptr/text()))/Name/text()
Element rtype1 was set to the value string
Element r1 was set to the value string(”)
Element fptr was set to the value fptr – 1
Element MaiCoSaveDir was set to the value //RESULT/ROW/VAL3/text()

#######################################################
Go To Top

Documentation for BP file OFMAIL.bp

Rule name: AddEmailTO

/Label SS: GenericOFss
| Set . equal to DOMToDoc(/ProcessData, ‘PrimaryDocument’)
|
| /Label CS: Choice Start
| |
| | if count(//MaiCoErrorEmailTO) = 0 is true then go to EAdd
| |
| | /Label SS: EAdd
| | | Set MaiCoErrorEmailTO equal to spt@MaiCo
| | |
| | \End Label SS
| |
| \End Label CS
|
| The service MaiCoSMTPSendAdapter is configured as follows:
| Get all Input values from ProcessData
| Configure Input parameter smtpSubject with value concat(//MaiCoErrorSubj/text(),’: ‘,
//INLINE_WFD_0/WFD_NAME/text(),’ FAILED in Instance ID ‘,//INLINE_WFD_0/WORKFLOW_ID/text())

| Configure Input parameter xport-smtp-mailCC with value //MaiCoErrorEmailCC//text()
| Configure Input parameter xport-smtp-mailsubject with value concat(//MaiCoErrorSubj/text(),’: ‘,
//INLINE_WFD_0/WFD_NAME/text(),’ FAILED in Instance ID ‘,//INLINE_WFD_0/WORKFLOW_ID/text())

| Configure Input parameter xport-smtp-mailto with value //MaiCoErrorEmailTO//text()
| Configure Input parameter xport-smtp-mailfrom with value spt@MaiCo
| Output all available values to ProcessData
|
\End Label SS

#####################################################################
Summary information for BP OFMAIL

Rules that are used in this BP:
Rule AddEmailTO: count(//MaiCoErrorEmailTO) = 0

Elements and parameters that are updated:
Element MaiCoErrorEmailTO was set to the value spt@MaiCo
A document was created by using DOMToDoc(/ProcessData, ‘PrimaryDocument’)

#######################################################
Go To Top

Documentation for BP file SAVEDOC.bp

Rule name: WRITEDOC

/Label SS: MaiCoArchiveSS
|
| /Label CS:
| |
| | if string-length(//MaiCoarchFilePrefix/text()) > 0 is true then go to ArchFileNameSS
| |
| | /Label SS: ArchFileNameSS
| | |
| | | The service MaiCogenericFileSystemAdapter is configured as follows:
| | | Configure Input parameter Action with value FS_EXTRACT
| | | Configure Input parameter appendOnExtract with value true
| | | Configure Input parameter assignedFilename with value concat(//MaiCoarchFPre/text(), ‘_’,
//INLINE_WFD_0/WORKFLOW_ID/text(), ‘_’,//MaiCoDT/text(), ‘_’, //MaiCoarchFSuf/text())

| | | Configure Input parameter assignFilename with value true
| | | Configure Input parameter extractionFolder with value concat(‘/data/arch/’, //MaiCoDir/text())
| | | Get all Input values from ProcessData
| | | This service is configured for Messages first then ProcessData.
| | | Values from ProcessData may override those listed above, and/or add to those not listed.
| | | Output all available values to ProcessData
| | |
| | \End Label SS
| |
| \End Label CS
|
| /******** Begin OnFault **********
| |
| | /Label SS: Sequence Start
| | | Set MaiCoErrorSub equal to Error writing file
| | |
| | | The service InlineInvokeBusinessProcessService is configured as follows:
| | | Get all Input values from ProcessData
| | | Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| | | Configure Input parameter WFD_NAME with value OFMAIL
| | | Output all available values to ProcessData
| | |
| | \End Label SS
| |
| \******** End OnFault **********
|
\End Label SS

#####################################################################
Summary information for BP SAVEDOC

Rules that are used in this BP:
Rule WRITEDOC: string-length(//MaiCoarchFilePrefix/text()) > 0

Elements and parameters that are updated:
Element MaiCoErrorSub was set to the value Error writing file

#######################################################
Go To Top

Documentation for BP file TP_BP.bp

/Label SS:
|
| The service InlineInvokeBusinessProcessService is configured as follows:
| Get all Input values from ProcessData
| Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| Configure Input parameter WFD_NAME with value DTPID
| Output all available values to ProcessData
| Comment in BP: <!–
| Comment in BP: <assign name=”Assign” to=”CONFIG1″>Config Value 1</assign>
| Comment in BP: <assign name=”Assign” to=”CONFIG2″ append=”true”>Config Value 2</assign>
| Comment in BP: –>
|
| The service InlineInvokeBusinessProcessService is configured as follows:
| Get all Input values from ProcessData
| Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| Configure Input parameter WFD_NAME with value GETADD
| Output all available values to ProcessData
|
| /******** Begin OnFault **********
| |
| | /Label SS: OnFault
| | |
| | | The service InlineInvokeBusinessProcessService is configured as follows:
| | | Get all Input values from ProcessData
| | | Configure Input parameter NOTIFY_PARENT_ON_ERROR with value NONE
| | | Configure Input parameter WFD_NAME with value OFMAIL
| | | Output all available values to ProcessData
| | |
| | \End Label SS
| |
| \******** End OnFault **********
|
\End Label SS

#####################################################################
Summary information for BP TP_BP

Rules that are used in this BP:

Elements and parameters that are updated: