jBPM 6 - deploy process definition from API to jbpm-console - eclipse

I've created a process definition in jBPM Project in Eclipse and now I'd like to deploy this definition to jbpm-console on remote database.
I found (here:https://developer.jboss.org/thread/234899) two ways to deploy a process, but it's not what I want:
- 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
Is there a possibility to do this from API? I mean by using some methods.

If I understand your question well, you are looking for some remote API call which allows you to upload your process definitions into the jBPM Console. Am I right?
Unfortunately, there is not such option. The remote API only provides methods to manipulate with the resources that are already on the server. And you can get your resources there using one of those two methods you have mentioned.
However, for process definitions there is also a third option which is more user-friendly but there is no easy way how to automate it. You can just create a new business process directly using the web interface of jBPM Console and upload your process definition in jBPM Designer.

Related

embedded maven remote repository

I am writing a scala client that should perform several reads from maven remote repository (dependency tree evaluation).
To perform e2e tests to my code I need a running maven repository (artifactory, nexus, archiva etc...) with several artifacts deployed.
I am looking for a way I can use test utility that will allow me to start embedded server with code configured artifacts and dependency relationship. That way I can set it up just before my test, use it and stop it.
If possible - I want to avoid using filesystem
Of course - that library can be either scala or java
There is a MockRepositoryServer in the Mojohaus project run by the Maven committers and others that does what you need. It is specifically designed for that exact testing purpose.
You can also use a full blown Nexus Repository Manager in a local install. Either will work.

Beginning jbpm 6 questions about expectations of integration

I have been researching the jbpm / drools engine and have been working on a proof of concept using jbpm 6 and the kie workbench. I am currently working on a proof of concept for page navigation, the process should receive a variable representing an action the user took on the page the engine uses the variable in the process to decide which page will be displayed to the user next and returns that value.
I have created this navigation example in drools and jbpm that has the "user action" variable mapped as a parameter before starting the process. Both a drools and jbpm application are created through eclipse where the process operated off a JbpmJUnitBaseTestCase class with console printouts that show me both processes are working as I expect.
Now I am working with the Kie Workbench in an effort to construct the same projects but produce a jar file that can be consumed by a stand alone application. Currently I am having trouble finding information for some questions and I not sure if my expectations are exceeding what Kie Workbench was designed to do.
Overall I would like to have a resulting jar file deployed from Kie Workbench that can be used in a stand alone application. It will use a data object from the data modeler that can be assigned values from the stand alone application. I will then run the Business process from the stand alone application to get the return a result to work with and load the corresponding page.
I have accessed the data object included in the deployed jar, can that jar also contain a KB and Session I can attach the data object to and run the process? I would eventually like to see a jar file I can include in a web page where I can instantiate the data object class, assign values and then attach and run a session without adding any additional libraries to the stand alone application.
Thanks you in advance.
If you managed to create your project(s) with all the assets and data models, you can build and deploy the project and that will generate a maven artefact (jar) which will be installed in a local maven repo. You can consume that jar inside your stand alone application. if you are using maven in your standalone application, you just need to add the dependency to your project and the kie-wb repository and it should work.

How to deploy process in jbpm6 console from Eclipse?

How to build and deploy process from Eclipse to jbpm6 console? When I right click on JBPM6 project or BPMN process definition, there is no option of deploying.
Is there an ant script to generate deployable process archive from an eclipse jbpm6 project?
When I ask about Guvnor, people say its removed from Jbpm 6. Where do my deployment go then?
Is there a documentation about the structure of deployment file? Can I deploy my own web services/rest services/EJBs along with JBPM process?
Camunda has a very well documented process deployment model. I am expecting similar model from JBPM6, but there is very little documentation.
http://www.bpm-guide.de/2011/09/28/less-code-bpm-with-camunda-fox-server-activiti-and-jboss-as-7/
There was a huge change in technology in the project for the 6 release, so you need to wait until the final community version is out. Now guvnor was replaced by a different more up to date repository where now all your deployments go. The structure of a deployable artifact is a regular maven project, which make your life easier when you need to deal with dependencies between packages.
Please check the following URL to see the changes in the infrastructure:
http://blog.athico.com/2013/06/goodbye-guvnor-hello-drools-workbench.html

Coldfusion deployment process

I am trying to figure out what's the best process to implement for build & deployment for coldfusion project.
I am much more familiar with the regular java stack: some back-end framework (Spring, Struts, etc), bunch of JSP files, then use maven to compile and bundle everything to a .war file that I simply deploy (copy) over to a tomcat webapp directory
Are cfm files practically same as jsp? What are the similarities & differences between Java vs Coldfusion build/deploy process?
The resources I found so far make it sound like to just copy & paste the physical files, which doesn't sound quite right.
The thread here Best Practices for Code/Web Application Deployment? - goes on the generic deployment process, which we already have implemented. We have code repository and maven to manage our build & deployment process, can coldfusion work straight out of the box with the same set up as regular Java/war projects?
A thread in Adobe forum does not give much insights either: Deploying ColdFusion 8 project via EAR/WAR file, plus it talks about EAR rather than WAR.
This is an old link from 2007: build tools: maven and coldfusion seem to indicate maven is not straight out of the box solution, also seems like Coldfusion has no need for dependency management that maven is so useful for?
Can someone help point me to the right direction for build & deployment of coldfusion projects with the following stack:
Code repository, doesn't matter much: Git, svn
Maven build
Deploy project as war into Tomcat7 (not built in)
MySQL db connector
and Lastly - how would the solution be different between CF8 vs CF10? Looks to me CF8 may be worse as it doesn't officially support Tomcat, whereas CF10 runs on modified version of Tomcat?
Thanks!
When it comes to deploying CFML out the box then you really just have to copy and paste the file into your web server. In your case if you are using git just pull it from your repository. You don't have to do anything other then that. However, in some cases you may need to clear your CFML Cache if you don't see the changes immediately. This is my personal process:
Make changes on local machine running a CFML Development environment.
Commit and Push changes to git repository.
Pull changes to Production Server
Clear cache if needed.
It really is simple as that as long as your code makes it that simple.
Answer 1:
I have worked on some substantial apps were the process was zip up all the files, send them to a deployment team and they will unzip at the appropriate location.
Answer 2:
I suspect you are looking for something like CAR files. http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fd3.html

Exporting RCP as a product

I am deploying my eclipse rcp product into some folder say C:\deploy\eclipse.
But
Here i am facing a problem,while i was exporting to the same location it says export failed,
Since my project is in development stage each time i do changes in the code,i need to deploy to perform unit testing its pretty time consuming.All that i want to achieve is just override the same deployed location, i don't know if it is possible? The current approach was just go and delete the currently deployed folder and then export again, this is odd i guess, can someone drive me in a better approach
I suggest to setup a headless build which means that you're able to trigger a build of your RCP application from the commandline. Once you've established a headless build you can write some sort of batch file which for example cleans up the deployment directory before the build.
You can integrate this batch file in your Eclipse IDE via External Tools.
Here is a tutorial on how to setup a headless build.