Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 2.82 KB

README.md

File metadata and controls

45 lines (29 loc) · 2.82 KB

Building Workflow endpoint

$ cd workflow/ ; mvn clean install;
$ cd launchers/workflow ; mvn clean install;

Starting Stanbol

$ cd launchers/workflow/target ; java -jar org.apache.stanbol.launchers.workflow-1.0.0-SNAPSHOT.jar;

If you want to deploy Camel routes defined in XML, you have to put a Camel XML route with route extension in stanbol/fileinstall directory. If you want to change the directory where to put the Camel XML routes, you have to specify the system property felix.fileinstall.dir pointing to the directory to be monitored. For other supported Apache Felix Fileinstall component properties, visit this link

$ cd launchers/workflow/target : java -Dfelix.fileinstall.dir=./stanbol/fileinstall/ -jar org.apache.stanbol.launchers.workflow-1.0.0-SNAPSHOT.jar; # In order to use the same directory used by Stanbol to deploy bundles

Testing Workflow component:

On demand workflow feature

The workflow endpoint offers sub-resource that allow you to directly call some predefined particular route

Template for this request is :

$ curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" --data "content=Here comes a little test with Paris as content and also Berlin but why not detect city as Boston and some well know people like Bob Marley." http://localhost:8080/workflow

http://localhost:8080/workflow/{workflowRoute} endpoint is used to start a route by its id defined using a XML file or Java Object (in a bundle).

To try the default enhancement chain (using chain Camel component), please copy the examples/defaultchain.route to stanbol/fileinstall directory and use the http://localhost:8080/flow/defaultchain endpoint to enhance content

If you want to try the same default enhancement chain but using a route based on engine components, please copy the examples/defaultchainengines.route to stanbol/fileinstall directory and use the http://localhost:8080/flow/defaultchainengines endpoint to enhance content