-
1. Re: How to depoly a process on JBPM 6 console
swiderski.maciej Nov 28, 2013 3:16 AM (in response to a.sous)jBPM console uses kjar as deployment units, a kjar is jar archive stored in maven repository and identified by GAV (GroupId, ArtefactId, Version). And these are the mandatory information you need to know to deploy given kjar into runtime environment.
So there are two ways to do that from eclipse:
- use archetype to create maven project for kjar, then simple mvn clean install and use Deployments view in jbpm console to deploy it
- push your maven project into jbpm console git repository and build and deploy it from within console - there is GIT integration screen cast on jbpm installer chapter in docs that might be useful
in general, it's based on maven, so once you have a maven project (with kmodule.xml) in it, it's deployable to runtime.
HTH
-
2. Re: How to depoly a process on JBPM 6 console
holmeson Dec 3, 2013 1:06 AM (in response to swiderski.maciej)Hi Maciej:
I tried the first method, but when I deploy the kjar I got a failure showed in problem view:"Deployment of unit org.jbpm:TestTwo:1.0.0 failed: number of transferred bytes cannot be negative". How to deal with it?
Any answer is appreciated!
Tian
-
3. Re: How to depoly a process on JBPM 6 console
swiderski.maciej Dec 4, 2013 3:14 AM (in response to holmeson)it means that in your kjar pom.xml you have dependency that cannot be resolved (or its transitive dependencies). Please try to clean up dependencies from kjar's pom.xml and try again. That should work properly then.
HTH
-
4. Re: How to depoly a process on JBPM 6 console
jay.guidos-bidstrading.com Dec 7, 2013 12:26 PM (in response to swiderski.maciej)Hi Maciej,
The archetype approach was a great tip, it shows a lot of information on how to use CDI, which is extremely lacking in the docs at the moment.
When I built the project from the archetype the tests failed. There is a reference to an interface: org.jbpm.services.task.lifecycle.listeners.JPATaskLifeCycleEventListener that is unsatisfied. It was in jbpm-human-task-core in 6.0.0.CR4 but was moved to jbpm-human-task-audit in 6.0.0.CR5.
It seems that refactor introduced a number of breaking changes to your archetype, as even fixing up the name of the class (and adding the dependency to jbpm-human-task-audit to the pom) did not allow the tests to pass.
But it was still useful!
Jay
-
5. Re: How to depoly a process on JBPM 6 console
swiderski.maciej Dec 9, 2013 1:41 AM (in response to jay.guidos-bidstrading.com)thanks for pointing that out. I'll update it and fix it to ensure it's usable out of the box.
HTH
-
6. Re: How to depoly a process on JBPM 6 console
gulamnadim Jan 8, 2014 5:16 AM (in response to a.sous)I am facing same problem, How to deploy Eclipse Project?
I am using Eclipse Juno, Create simple project using JBPM (Maven) Option from Eclipse, and From Run As->Maven clean and Maven Install.
Then go to Kie Workbench and Open Deployment Window as you told. But there is no way to add my project.
If I have take wrong path so please guide me. Otherwise what I should do next?
Nadim
-
7. Re: How to depoly a process on JBPM 6 console
swiderski.maciej Jan 9, 2014 1:30 AM (in response to gulamnadim)on Deployments panel, on right hand side on top of the table there are buttons where one of them is New Deployment Unit. Click on it and specify Group Artifact and Version of you maven project. That assumes that you run jbpm console on the same machine where you built maven project. See documentation section for more details on it.
HTH
-
8. Re: How to depoly a process on JBPM 6 console
gulamnadim Jan 10, 2014 12:22 AM (in response to swiderski.maciej)First Thank you so much for your Reply,
I have try what you said but it is giving error: "Deployment of unit com.sample:jbpm-example:1.0.0-SNAPSHOT failed: number of transferred bytes cannot be negative".
I have read your reply t\for same error. You said remove dependency jar from pom.xml. But in Dependencies I have only one jar "jbpm-test:${jbpm.version}". This is JBPM 6 jar when i romve it, it gives error.
So can you guide me how to clean dependencies?
Nadim
-
9. Re: How to depoly a process on JBPM 6 console
swiderski.maciej Jan 10, 2014 2:19 AM (in response to gulamnadim)what do you need the jbpm-test as dependency? Do you have any unit testing in your project that requires it? If so maybe you could put the dependency into test scope as test scope dependencies should be omitted when deployed to jbpm console. Please keep in mind that jbpm-test is intended only for unit testing and should not be used on runtime environments as it brings lots of transitive dependencies.
HTH
-
10. Re: How to depoly a process on JBPM 6 console
gulamnadim Jan 11, 2014 6:22 AM (in response to swiderski.maciej)I don't need jbpm-test as dependency. It is automatically created with JBPM Project (Maven). I have tried after deleting this dependency as well but still error is same. I have deleted ProcessTest.java file, My BPMN process is default process which is created by Eclipse. I fill all information in "New Deployment Unit". So can you guide me what goes wrong?
Nadim
-
11. Re: How to depoly a process on JBPM 6 console
swiderski.maciej Jan 13, 2014 2:02 AM (in response to gulamnadim)that is actually all that is needed to deploy it. Once it's in maven local repo (usually in ~/.m2/repository) it should be capable of deploying it. Check if you have it there. If it still does not work could you attach the pom.xml of your project and server log with the error.
HTH
-
12. Re: How to depoly a process on JBPM 6 console
rdl-dev Jan 23, 2014 5:30 PM (in response to gulamnadim)Hi Nadim,
I was running into the same issue. Check this out. It may help.
3. Re: JBPM6 as Runtime Engine
cheers
-
13. Re: How to depoly a process on JBPM 6 console
gulamnadim Feb 28, 2014 7:21 AM (in response to rdl-dev)Thanks.. I have solved this problem. Now, I have facing one more problem, JBPM 5.4 create one png image of Process for image processing, So this method is follow in JBPM 6? If yes, so at which path this image is created? If no then how JBPM 6 Handle Image Processing?
Any answer regarding this issue is appreciable.
Thanks,
Nadim
-
14. Re: How to depoly a process on JBPM 6 console
rizon Jul 31, 2014 8:01 AM (in response to a.sous)- use archetype to create maven project for kjar, then simple mvn clean install and use Deployments view in jbpm console to deploy it
Can somebody tell me how to do it step by step? I download archetype and what now? I don't know how to use maven.
Regards