tiarebalbi / infinitic-spring-boot-integration

Spring Boot Integration with the Infinitic Framework

Home Page:https://docs.infinitic.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinitic Spring Boot 3 Starter

Welcome to the Infinitic Spring Boot 3 Starter project! This repository provides an auto-configuration integration with Spring Boot for the Infinitic library, which is designed to orchestrate services distributed on multiple servers, built on top of Apache Pulsar. With Infinitic, you can easily manage complex scenarios, ensuring that failures don't disrupt your workflows.

Compatibility

Spring Boot Version Infinitic
3.2.x 0.11.7+
3.1.x 0.11.6

Getting Started

Installation: Add the Infinitic dependency to your pom.xml or build.gradle file.

Maven

<dependency>
    <groupId>com.tiarebalbi.infinitic</groupId>
    <artifactId>infinitic-spring-boot-3-starter</artifactId>
    <version>1.1.0</version>
</dependency>

Gradle (Kotlin)

implementation("com.tiarebalbi.infinitic:infinitic-spring-boot-3-starter:1.1.0")

Other references here: https://central.sonatype.com/artifact/com.tiarebalbi.infinitic/infinitic-spring-boot-3-starter

Configuration: Configure the Infinitic integration in your Spring Boot application's configuration files.

# Enable auto-configure
infinitic.enabled=true
## Worker Setting
infinitic.worker.enabled=true
infinitic.worker.configuration=classpath:infinitic-worker.yml
## Client Setting
infinitic.client.enabled=true
infinitic.client.configuration=classpath:infinitic-client.yml

Usage: Start using the Infinitic library in your application code.

@Service
class InfiniticDemoService {

    @Autowired
    private lateinit var infiniticClient: InfiniticClient

    fun runProcess() {
        val event = this.infiniticClient.newWorkflow(AnnotatedWorkflow::class.java)
        val result = event.concatABC("Demo-")
        println(result)
    }
}

Contributing

We welcome contributions to the Infinitic Spring Boot 3 Starter project. If you find a bug, have an enhancement idea, or want to contribute in any other way, feel free to open an issue or submit a pull request.

About

Spring Boot Integration with the Infinitic Framework

https://docs.infinitic.io/

License:Apache License 2.0


Languages

Language:Kotlin 100.0%