Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ali-agentic-adk-java/ali-agentic-adk-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<artifactId>rxjava</artifactId>
</dependency>

<dependency>
<!-- <dependency>
<groupId>com.alibaba.smart.framework</groupId>
<artifactId>smart-engine-core</artifactId>
<version>2.6.0</version>
Expand All @@ -83,6 +83,12 @@
<groupId>com.alibaba.smart.framework</groupId>
<artifactId>smart-engine-extension-storage-custom</artifactId>
<version>2.6.0</version>
</dependency> -->
<!-- Use JitPack to get github repository commit -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>SmartEngine</artifactId>
<version>8acf58f966</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -234,4 +240,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
import com.alibaba.smart.framework.engine.bpmn.assembly.gateway.ExclusiveGateway;
import com.alibaba.smart.framework.engine.context.ExecutionContext;
import com.alibaba.smart.framework.engine.exception.EngineException;
import com.alibaba.smart.framework.engine.extension.annoation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.annotation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.constant.ExtensionConstant;
import com.alibaba.smart.framework.engine.pvm.PvmActivity;
import com.alibaba.smart.framework.engine.pvm.PvmTransition;
import com.alibaba.smart.framework.engine.pvm.event.PvmEventConstant;
import com.alibaba.smart.framework.engine.pvm.event.EventConstant;
import io.reactivex.rxjava3.core.Flowable;
import lombok.extern.slf4j.Slf4j;

Expand All @@ -50,7 +50,7 @@ public ExclusiveGatewayBehavior() {

@Override
public void leave(ExecutionContext context, PvmActivity pvmActivity) {
fireEvent(context, pvmActivity, PvmEventConstant.ACTIVITY_END);
fireEvent(context, pvmActivity, EventConstant.ACTIVITY_END);

Map<String, PvmTransition> outcomeTransitions = pvmActivity.getOutcomeTransitions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.alibaba.smart.framework.engine.behavior.base.AbstractTransitionBehavior;
import com.alibaba.smart.framework.engine.bpmn.assembly.process.SequenceFlow;
import com.alibaba.smart.framework.engine.context.ExecutionContext;
import com.alibaba.smart.framework.engine.extension.annoation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.annotation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.constant.ExtensionConstant;
import com.alibaba.smart.framework.engine.model.assembly.Transition;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.alibaba.smart.framework.engine.configuration.impl.DefaultListenerExecutor;
import com.alibaba.smart.framework.engine.context.ExecutionContext;
import com.alibaba.smart.framework.engine.model.assembly.ExtensionElementContainer;
import com.alibaba.smart.framework.engine.pvm.event.PvmEventConstant;
import com.alibaba.smart.framework.engine.pvm.event.EventConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

Expand All @@ -46,9 +46,9 @@ public class EndListenerExecutor extends DefaultListenerExecutor {


@Override
public void execute(PvmEventConstant event, ExtensionElementContainer extensionElementContainer, ExecutionContext context) {
public void execute(EventConstant event, ExtensionElementContainer extensionElementContainer, ExecutionContext context) {
SystemContext systemContext = (SystemContext) context.getRequest().get(ExecutionConstant.SYSTEM_CONTEXT);
if (PvmEventConstant.PROCESS_END.equals(event) && InvokeMode.ASYNC.equals(systemContext.getInvokeMode())) {
if (EventConstant.PROCESS_END.equals(event) && InvokeMode.ASYNC.equals(systemContext.getInvokeMode())) {
Result result = (Result) context.getResponse().get(ExecutionConstant.CALLBACK_RESULT);
asyncConsumerList.ifPresent(asyncConsumers ->
asyncConsumers.forEach(asyncConsumer ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import com.alibaba.smart.framework.engine.bpmn.assembly.process.SequenceFlow;
import com.alibaba.smart.framework.engine.bpmn.assembly.process.parser.AbstractBpmnParser;
import com.alibaba.smart.framework.engine.extension.annoation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.annotation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.constant.ExtensionConstant;
import com.alibaba.smart.framework.engine.xml.parser.ParseContext;
import com.alibaba.smart.framework.engine.xml.util.XmlParseUtil;
Expand Down
1 change: 1 addition & 0 deletions ali-agentic-adk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<module>ali-agentic-adk-core</module>
<module>ali-agentic-adk-extension/ali-agentic-example</module>
<module>ali-agentic-adk-extension/ali-agentic-adk-computer-use</module>
<module>smartengine</module>

</modules>
<dependencyManagement>
Expand Down
48 changes: 48 additions & 0 deletions ali-agentic-adk-java/smartengine/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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>

<groupId>com.alibaba</groupId>
<artifactId>SmartEngine</artifactId>
<version>8acf58f966</version>
<packaging>pom</packaging>

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

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.github.alibaba.SmartEngine</groupId>
<artifactId>smart-engine-core</artifactId>
<version>8acf58f966</version>
</dependency>
<dependency>
<groupId>com.github.alibaba.SmartEngine</groupId>
<artifactId>smart-engine-extension-storage-common</artifactId>
<version>8acf58f966</version>
</dependency>
<dependency>
<groupId>com.github.alibaba.SmartEngine</groupId>
<artifactId>smart-engine-extension-storage-custom</artifactId>
<version>8acf58f966</version>
</dependency>
</dependencies>

<build>
<plugins>

</plugins>
</build>
</project>