Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshlong-attic/spring-integration-activiti-sandbox
a repository to let me flesh out some ideas without polluting the proper Spring integration and Activiti repositories
https://github.com/joshlong-attic/spring-integration-activiti-sandbox
Last synced: 1 day ago
JSON representation
a repository to let me flesh out some ideas without polluting the proper Spring integration and Activiti repositories
- Host: GitHub
- URL: https://github.com/joshlong-attic/spring-integration-activiti-sandbox
- Owner: joshlong-attic
- Created: 2010-11-15T13:42:32.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-26T12:14:00.000Z (about 14 years ago)
- Last Synced: 2024-04-13T19:27:49.714Z (8 months ago)
- Language: Java
- Homepage:
- Size: 195 KB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
im thinking o a way to build on the support already present to enable people to use Spring integration and Activiti together.
As it stands, there's a gateway component that lets me propagate execution to a component running inside of Spring Integration. One ideal of this projet is to describe a component model that gets invoked as a consequence of of any state to which its attached. Example:
@Component
public class Handler {
@ActivitiState ( "confirm-receipt") t
public void myHandle ( @ProcessVariable("customerId") long customerId, @ProcessVariables Map variables, ExecutionContext ctx ) throws Throwable {
// custom logic here
}
}or, to signa which transition the component needs to take:
@Component
public class Handler {
@ActivitiState ( "confirm-receipt")
public String myHandle ( @ProcessVariable("customerId") long customerId ) throws Throwable {
// custom logic here
return "failure";
}
}@Component
public class Handler {
@ActivitiState ( "confirm-receipt")
public String myHandle ( @ProcessId String procId, @ProcessVariable("customerId") long customerId ) throws Throwable {
// custom logic here
return "failure";
}
}in that example the return value will be used to look up the next activiti state.