Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jandusek4 committed Mar 10, 2022
2 parents 9d62772 + 35d063a commit 249034d
Show file tree
Hide file tree
Showing 8 changed files with 2,909 additions and 705 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.2.0] - 2022-03-10

### Added

- A test process with task and task screen allowing to select/upload an input file and calling the Datacap transaction.

### Changed

- Logging changed from applog to BAW's native logging.

## [1.1.0] - 2018-12-04

### Added
Expand Down
58 changes: 46 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,54 @@
# Datacap Utils Toolkit

Datacap Utils Toolkit is a collection of re-usable artifacts useful
for integration with IBM Datacap REST services from IBM Business Automation Workflow.
Datacap Utils Toolkit is a collection of re-usable artifacts useful for integration with IBM Datacap REST services from IBM Business Automation Workflow.

Wiki:
<a href="https://github.ibm.com/apollo-dba-community/wiki/tree/master/baw/development/toolkits/datacap-utils-toolkit" target="_blank">https://github.ibm.com/apollo-dba-community/wiki/tree/master/baw/development/toolkits/datacap-utils-toolkit</a>
Repository: <a href="https://github.com/apollo-business-automation/datacap-utils-toolkit" target="_blank">https://github.com/apollo-business-automation/datacap-utils-toolkit</a>

Releases:
<a href="https://github.ibm.com/apollo-dba-community/releases/tree/master/datacap-utils-toolkit" target="_blank">https://github.ibm.com/apollo-dba-community/releases/tree/master/datacap-utils-toolkit</a>
API: <a href="https://apollo-business-automation.github.io/datacap-utils-toolkit" target="_blank">https://apollo-business-automation.github.io/datacap-utils-toolkit</a>

API:
<a href="https://pages.github.ibm.com/apollo-dba-community/api/datacap-utils-toolkit" target="_blank">https://pages.github.ibm.com/apollo-dba-community/api/datacap-utils-toolkit</a>
## Description

Repository:
<a href="https://github.ibm.com/apollo-dba-community/datacap-utils-toolkit" target="_blank">https://github.ibm.com/apollo-dba-community/datacap-utils-toolkit</a>
The toolkit provides integration with Transactions which are provided via the Datacap Web Services REST API documented at https://www.ibm.com/docs/en/datacap/9.1.9?topic=reference-datacap-web-services-rest-api-methods

For changes see <a href="https://github.ibm.com/apollo-dba-community/datacap-utils-toolkit/blob/master/CHANGELOG.md" target="_blank">CHANGELOG</a>
## Content of the toolkit

For sample usage see artifacts beginning with *ZTest*
- Service flows – wrappers for transaction API calls:
- Session Logon
- Session Logoff
- Transaction Start
- Transaction Execute
- Transaction End
- Transaction Set File
- Transaction Get File
- Sample transaction flow for TravelDocs application which comes out-of-the-box with Datacap.
- Recoding of files from UTF-16 LE BOM and UTF-8 BOM to UTF-8
- Sample process with a task allowing:
- Upload and select document
- Select the transaction REST endpoint
- Call the transaction flow and see the output

## Making Traveldocs Datacap application ready for transactions

A slight adjustment of the Datacap application is needed in order to make it ready for transactions.

![assets/update-datacap-application-export-path.png](assets/update-datacap-application-export-path.png)

Instructions:
- Open TravelDocs application in Datacap Studio.
- Select and lock ruleset `ExportXML` for editing.
- Navigate to the action following the screenshot below.
- Update value of the action parameter on the right hand side to `@PILOT(BATCHDIR)`
- Save the changes and publish the ruleset.

## Usage

- Import the release twx file into Workflow Center
- Start process `ZTest Datacap Transaction`
- Run task `ZTest Datacap Transaction` and open the task screen
- Select one of the sample files already attached to the process instance or upload your file.
- Review the REST endpoint configuration and update it if needed.
- Select conversion from the proper UTF encoding. It may differ depending on on configuration of your Datacap.
- Click the button to call the transaction.
- See the output.

You can adjust the REST endpoint in CSHS `ZTest Datacap TravelDocs Cshs Coach`. Edit the script called `Init`.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 17 additions & 7 deletions jsdoc-conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"source": {
"exclude": [
"./dist/",
"./node_modules/"
],
"includePattern": ".+\\.js(doc)?$",
Expand All @@ -11,7 +12,7 @@
"recurse": true,
"private": false,
"destination": "./docs",
"template": "./node_modules/docdash"
"template": "./node_modules/tui-jsdoc-template"
},
"tags": {
"allowUnknownTags": true
Expand All @@ -21,11 +22,20 @@
"default": {
"cleverLinks": true,
"monospaceLinks": true,
"outputSourceFiles": false
}
},
"docdash": {
"search": true,
"collapse": true
"outputSourceFiles": false,
"staticFiles": {
"include": ["jsdoc-static/", "assets"]
}
},
"footerText": "Datacap Utils Toolkit",
"logo": {
"url": "",
"width": "150px",
"height": "13px",
"link": ""
},
"css": [
"styles/custom.css"
]
}
}
14 changes: 14 additions & 0 deletions jsdoc-static/styles/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.logo {
display: none;
}

.main section article table td.name,
.main section article table td.type,
.main section article table td.attributes,
.main section article table td.default {
max-width: initial;
}

.main section article h3.subsection-title {
padding-top: 0;
}
Loading

0 comments on commit 249034d

Please sign in to comment.