forked from alibaba/SmartEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
26 changed files
with
239 additions
and
261 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
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
2 changes: 1 addition & 1 deletion
2
...ases/CallActivityParallelGateWayTest.java → ...eway/CallActivityParallelGateWayTest.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
2 changes: 1 addition & 1 deletion
2
...lelGateWayListenerIssueConfiguration.java → ...lelGateWayListenerIssueConfiguration.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
2 changes: 1 addition & 1 deletion
2
...est/ParallelGateWayListenerIssueTest.java → ...ted/ParallelGateWayListenerIssueTest.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
3 changes: 2 additions & 1 deletion
3
...way/ExceptionOrchestrationDelegation.java → ...ion/ExceptionOrchestrationDelegation.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
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
2 changes: 1 addition & 1 deletion
2
...arallelgateway/ThreadExecutionResult.java → .../orchestration/ThreadExecutionResult.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
4 changes: 3 additions & 1 deletion
4
.../AServiceTaskOrchestrationDelegation.java → .../AServiceTaskOrchestrationDelegation.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
4 changes: 3 additions & 1 deletion
4
.../BServiceTaskOrchestrationDelegation.java → .../BServiceTaskOrchestrationDelegation.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
4 changes: 3 additions & 1 deletion
4
...ceTaskTimeoutOrchestrationDelegation.java → ...ceTaskTimeoutOrchestrationDelegation.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
2 changes: 1 addition & 1 deletion
2
...askTimeoutOrchestrationDelegationOne.java → ...askTimeoutOrchestrationDelegationOne.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
2 changes: 1 addition & 1 deletion
2
...askTimeoutOrchestrationDelegationTwo.java → ...askTimeoutOrchestrationDelegationTwo.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
2 changes: 1 addition & 1 deletion
2
...llelgateway/BasicParallelGatewayTest.java → ...ngle/thread/BasicParallelGatewayTest.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
20 changes: 4 additions & 16 deletions
20
...arallelgateway/ServiceTaskDelegation.java → .../single/thread/ServiceTaskDelegation.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 |
---|---|---|
@@ -1,48 +1,36 @@ | ||
package com.alibaba.smart.framework.engine.test.parallelgateway; | ||
package com.alibaba.smart.framework.engine.test.parallelgateway.single.thread; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import com.alibaba.smart.framework.engine.context.ExecutionContext; | ||
import com.alibaba.smart.framework.engine.delegation.JavaDelegation; | ||
import com.alibaba.smart.framework.engine.delegation.TccDelegation; | ||
import com.alibaba.smart.framework.engine.delegation.TccResult; | ||
|
||
import lombok.Getter; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class ServiceTaskDelegation implements TccDelegation { | ||
public class ServiceTaskDelegation implements JavaDelegation { | ||
|
||
private static final Logger LOGGER = LoggerFactory.getLogger(ServiceTaskDelegation.class); | ||
|
||
@Getter | ||
private static List<String> arrayList = new ArrayList<String>(); | ||
|
||
@Override | ||
public TccResult tryExecute(ExecutionContext executionContext) { | ||
public void execute(ExecutionContext executionContext) { | ||
Map<String, Object> request = executionContext.getRequest(); | ||
if (null != request) { | ||
Object o = request.get("input"); | ||
if (o != null) { | ||
String input = o.toString(); | ||
arrayList.add(input); | ||
//LOGGER.info("request input"+arrayList); | ||
} | ||
} | ||
|
||
return null; | ||
} | ||
|
||
@Override | ||
public TccResult confirmExecute(ExecutionContext executionContext) { | ||
return null; | ||
|
||
} | ||
|
||
@Override | ||
public TccResult cancelExecute(ExecutionContext executionContext) { | ||
return null; | ||
|
||
} | ||
} |
Oops, something went wrong.