- Add activities under the activity package. Use ListConnectContacts and ListConnectContactsExecutor as a reference.
- SWADL activity names will follow the main activity class name, converted to kebab case. e.g.
ListConnectContacts
->list-connect-contacts
. Refer to list-contacts.swadl.yaml for an example.
- Build the project using
./gradlew build
, generating thelib
directory of JARs - Run the WDK bot as usual
java -jar workflow-bot-app.jar
- Deploy both the
workflow-bot-app.jar
and thelib
directory into the same location - Run the WDK bot as usual
java -jar workflow-bot-app.jar
- This project uses Spring for reading the common configuration, auto-wiring the FederationClient and employs RestTemplates as a HTTP client
- As the custom activity classes are loaded by WDK, this project's package is not component-scanned by default by Spring
- To enable Spring, the spring.factories file is used to define an auto configuration class
- This class - AutoConfig - defines the
basePackages
to include in the Spring component scan - If you wish to modify the base package name of this project, this
basePackages
value will need to be revised as well