Search code examples
javajbossjbpmwildfly-8kie-workbench

JBPM 6.2. How to deploy a workflow directly from Eclipse instead of KIE workbench?


I am using Eclipse Luna and WildFly 8.1 with JBPM 6.2. Currently, my Eclipse is configured so that I can start both the WildFly 8.1 server and the KIE workbench directly from within Eclipse.

Previously, I had created an Evaluation.bpmn workflow from the KIE workbench and was able to succesfully deploy it and see the workflow logs in the database tables.

However, is there a way to create a JBPM project in Eclipse and deploy and start the workflow directly from Eclipse? If so, how can I do it?


Solution

  • This isn't deploying from eclipse. The best way is:

    1. Create a m2e project mentioned by @jl987
    2. Create a junit test
    3. In junit before class, use the jbpm rest api to deploy your maven artifact
    4. In junit test method execute and validate results of workflow with rest api.

      The rest api can be found at: API

      There is also a maven rest client in kie-remote: Client