A collection of libraries and tools to help with business process development&debugging and management of IBM Sterling B2B Integraton / IBM Sterling Filegateway artifacts.
The project contains
- B2BUtils: Command line tools (WorkflowUtil, LdapAdmin, MailboxMgr etc.)
- VS Code helper: Configuration files for Visual Studio Code integration
- JavaTaskHelper: Wrapper class to help developing and debugging JavaTask code.
- B2BApiClients: client libraries for B2Bi REST APIs, SEAS LDAP servers, SSP REST APIs
- ddutils: Utlilities
Binary releases are available on Github.
The project is built with gradle. To create a distribution package, run
[B2BiUtils] $ ./gradlew clean distTar
or
[B2BiUtils] $ ./gradlew clean distZip
Packages are built in [B2BiUtils]/B2BUtils/build/distributions
.
Extract binary package to destination dir. Make sure, a compatible JDK is installed. java
binary is searched in
- JRE_HOME/bin
- JAVA_HOME/bin
- PATH
Min. version in JDK-8. If you are handling SSH keys using elliptic curve algorithms (e.g. Ed25519
), a JDK >= 17 is required.
To install on same machine where the package is built, you can add the property b2biutils.install.dir=/path/to/b2butils
in $HOME/.gradle/gradle.properties
and run
[B2BiUtils] $ ./gradlew clean localInstall
Note: all files in b2biutils.install.dir
will be overwritten/removed except
apiconfig.properties
sshkeys.txt
*.cfg
The package comes with a helper business process DD_API_WS
(see DD_API_WS.bpml) that implements some functionality not provided by B2Bi (e.g. XSLT management, execute BPs in containers etc.) and more performant alternatives to some REST GET APIs. To use this:
- add WFDs
DD_API_WS
andDD_API_WS_RESPONSE
fromB2BApiClient/src/main /resources/
- implement a HTTP Server Adapter with authentication and expose a URI (e.g.
/ws_api
) to run theDD_API_WS
- Create a LightWeight JDBC Adapter
DD_JDBC_ADAPTER_01
(for GET APIs) - Create a Command Line Adapter 2
DD_CLA_LOCAL
to run local on ASI server/pod (for execute BP) - Create an empty JavaTask service
DD_JavaTaskService
with inline source (hint: put an "x" in source code to overcome dashboard validation)
NOTE: passwords in config files should be encrypted with b2bPasswordUtil.sh
or b2bPasswordUtil.cmd
$ b2bPasswordUtil.sh
Enter password:
{PBKDF2}AQAACmZahm7CNb7qUF8AAJxAAQAAEF9MX3ySrFMAfn6JaTiSSEAAEOYx012019BB9CdoKApS7oo=
Create configuration file apiconfig.properties
(use [installdir]/apiconfig-sample.properties
as template). The applications will look for a configuration file in the following locations:
- file given by
--configfile
or-C
option (fully qualified path or file name in${workdir}
,${user.home}
or${installdir}
) ${user.home}/.apiconfig.properties
${user.home}/apiconfig.properties
${installdir}/apiconfig.properties
Depending on what you want to use, configure sections
sfgapi.*
: REST APIs and/or WS API. User requires permissionAPIUser
to access REST API.sfgapi.wsapilist
: leave empty, ifDD_API_WS
is not installed. Removeexecutebp
from list, if you want to executeworkflowLauncher.sh
via ssh and/or sudo.sfgapi.executebp.*
: if you can executeworkflowLauncher.sh
via ssh and/or sudosfg.db.*
: required for JPA (manage custom tables)ldap.*
: if you want to manage LDAP users/ssh keys (with SEAS)ssp.*
andcd.*
: If you want to access SSP REST APIs (currently only C:D netmap)
Please report issues, ideas, change requests etc. in issues.