BPDocRx Basic
DTPID.bp
GETADD.bp
OFMAIL.bp
SAVEDOC.bp
TP_BP.bp
#######################################################
Go To Top
Documentation for BP file DTPID.bp
/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
| | | 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
| | | 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
#######################################################
Go To Top
Documentation for BP file GETADD.bp
/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
| | 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
| | | | 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
| | | | | | 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
| 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
#######################################################
Go To Top
Documentation for BP file OFMAIL.bp
/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
#######################################################
Go To Top
Documentation for BP file SAVEDOC.bp
/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
| | | 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
#######################################################
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
#######################################################




