-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb7b3c6
commit 3fd2294
Showing
12 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
21 changes: 21 additions & 0 deletions
21
...per-workflow/src/main/java/com/fluxtion/example/devworkflow/aot/PermissionAotBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} |
Oops, something went wrong.