Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

<Your project's title>

This project was auto-generated from the BAMOE Canvas Accelerator Quarkus (Full), and enables Processes, Decisions, and Rules. It's built on Quarkus, the Supersonic Subatomic Java Framework.

NOTE: Some properties configured in src/main/resources/application.properties have to be updated replacing the <TODO> placeholder with actual values for your usage.

Description

<Your project's description>

Building and running

In dev mode

mvn clean quarkus:dev

Dev mode enables a number of helpful features while developing the project:

As a JAR

mvn clean package

This command produces the quarkus-run.jar file in the target/quarkus-app/ directory. Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/ directory.

The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar.

If you want to build an über-jar, execute the following command:

mvn clean package -Dquarkus.package.type=uber-jar

The application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar.

As a native executable

mvn clean package -Dnative

Or, if you don't have GraalVM installed, you can run the native executable build in a container using:

mvn clean package -Dnative -Dquarkus.native.container-build=true

You can then execute your native executable with: ./target/*-1.0.0-SNAPSHOT-runner

If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.


Using the BAMOE Gen AI Task

This project comes bundled with the com.ibm.bamoe:bamoe-gen-ai-task-work-item-handler-quarkus addon, and if your workflow uses the BAMOE Gen AI Task, you will need to configure the required AI Providers.

Set the following properties in the application.properties file to configure each AI Provider.

# watsonx
bamoe.workflow.gen-ai-task.provider.watsonx.base-url=<WATSONX_BASE_URL>
bamoe.workflow.gen-ai-task.provider.watsonx.api-key=<API_KEY>
bamoe.workflow.gen-ai-task.provider.watsonx.project-id=<PROJECT_KEY>
bamoe.workflow.gen-ai-task.provider.watsonx.log-requests=<true/false>
bamoe.workflow.gen-ai-task.provider.watsonx.log-responses=<true/false>

# Ollama
bamoe.workflow.gen-ai-task.provider.ollama.base-url=<OLLAMA_BASE_URL> # Usually http://localhost:11434
bamoe.workflow.gen-ai-task.provider.ollama.log-requests=<true/false>
bamoe.workflow.gen-ai-task.provider.ollama.log-responses=<true/false>

# OpenAI
bamoe.workflow.gen-ai-task.provider.openai.base-url=<OPENAI_BASE_URL>
bamoe.workflow.gen-ai-task.provider.openai.api-key=<API_KEY>
bamoe.workflow.gen-ai-task.provider.openai.log-requests=<true/false>
bamoe.workflow.gen-ai-task.provider.openai.log-responses=<true/false>

Notes on provided code and how to evolve this application

The src/main/resources/application.properties file contains the basic properties for the project, enabling:

  • CORS protection
  • OpenAPI Specifications
  • Swagger UI
  • PostgreSQL setup
  • Secured endpoints with OIDC
  • Secured connections with BAMOE Management Console

Add any additional code, BAMOE resource files, and/or properties to their appropriate places following Apache Maven's standard project layout:

  • src/main/java/
    • For Java production code.
  • src/main/resources/
    • For production configuration files and Decisions (.dmn), Processes (.bpmn), Rules (.drl), Excel Decision Tables (.xslx), and others.
  • src/test/java/
    • For Java test code.
  • src/test/resources/
    • For test configuration files.

For more information about BAMOE, please refer to the official BAMOE Documentation.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages