Skip to content

Commit

Permalink
developer workflow example
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-higgins committed Apr 30, 2024
1 parent cb7b3c6 commit 3fd2294
Show file tree
Hide file tree
Showing 12 changed files with 692 additions and 0 deletions.
51 changes: 51 additions & 0 deletions getting-started/developer-workflow/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fluxtion.example</groupId>
<artifactId>example.master</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<name>getting-started :: developer-workflow</name>
<artifactId>developer-workflow</artifactId>

<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.1.0-jre</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.fluxtion</groupId>
<artifactId>fluxtion-maven-plugin</artifactId>
<version>3.0.14</version>
<executions>
<execution>
<goals>
<goal>scan</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.fluxtion.example.devworkflow.aot;

import com.fluxtion.compiler.EventProcessorConfig;
import com.fluxtion.compiler.FluxtionCompilerConfig;
import com.fluxtion.compiler.FluxtionGraphBuilder;
import com.fluxtion.example.devworkflow.integrating.CommandAuthorizerNode;
import com.fluxtion.example.devworkflow.integrating.CommandExecutor;

public class PermissionAotBuilder implements FluxtionGraphBuilder {

@Override
public void buildGraph(EventProcessorConfig eventProcessorConfig) {
eventProcessorConfig.addNode(new CommandExecutor(new CommandAuthorizerNode()));
}

@Override
public void configureGeneration(FluxtionCompilerConfig compilerConfig) {
compilerConfig.setClassName("PermittedCommandProcessor");
compilerConfig.setPackageName("com.fluxtion.example.devworkflow.aot.generated");
}
}
Loading

0 comments on commit 3fd2294

Please sign in to comment.