[jBPM] - Debug JBPM-Console
by new-comer
new-comer [https://community.jboss.org/people/new-comer] created the discussion
"Debug JBPM-Console"
To view the discussion, visit: https://community.jboss.org/message/741328#741328
--------------------------------------------------------------
Hi,
I have downloaded the code from
https://github.com/droolsjbpm/jbpm/zipball/master https://github.com/droolsjbpm/jbpm/zipball/master
and built it with Maven, and imported everytihng to eclipse, I could start the server, I could access Guvnor, but when I tried to access jbpm-console, got 404 error, when I looked at the project, there is no java source code, is this correct? what did I miss?
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741328#741328]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[JBoss Tools] - JBoss Tools and Developer Studio Candidate Release
by Nick Boldt
Nick Boldt [https://community.jboss.org/people/nickboldt] modified the blog post:
"JBoss Tools and Developer Studio Candidate Release"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/06/12/jboss-tools-a...
--------------------------------------------------------------
The release candidate of JBoss Tools and Developer Studio is now available - mainly with bugfixes but also a few nice improvements for AS 7, OpenShift and Maven integration.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4854-18193/j... https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4854-181...
h4. CR1
Developer Studio: [ http://devstudio.jboss.com/earlyaccess Download] | Tools: [ http://www.jboss.org/tools/download/dev Download] [ http://download.jboss.org/jbosstools/updates/development/indigo/ Update Site] | [ http://docs.jboss.org/tools/whatsnew What's New] [ http://www.jboss.com/index.html?module=bb&op=viewforum&f=201 Forums] [ http://jira.jboss.com/jira/browse/JBIDE JIRA] [ http://twitter.com/jbosstools Twitter]
JBoss Tools is a set of plugins for Eclipse that complements, enhances and goes beyond the support that exists for JBoss and related technologies in the default Eclipse distribution.
JBoss Developer Studio is a fully bundled Eclipse distribution which not only includes majority of JBoss Tools but also all its needed dependencies and 3rd party plugins allowing for an easy one-click and no-fuss installation.
If you are into doing your own bleeding edge eclipse plugin assembly, JBoss tools is for you; if you are more into having something that "Just Works" then JBoss Developer Studio is the way to go.
h2. Installation
+JBoss Developer Studio+ comes with everything pre-bundled in its installer. Simply http://devstudio.jboss.com/earlyaccess download it and run it like this:
java -jar jbdevstudio-<installername>.jar
*Note:* if you are on Windows or Mac OSX 64-bit we recommend you ensure to select the 32-bit option in the multi-platform installer to get Visual Page editor working and use much less memory.
+JBoss Tools+ requires a bit more:
This release requires at least Eclipse 3.7.2 but we recommend using the http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/... Eclipse 3.7.2 JEE Bundle since then you get most of the dependencies preinstalled.
Once you have installed Eclipse, you either find us on http://marketplace.eclipse.org/content/jboss-tools-indigo Eclipse Marketplace under "JBoss Tools (Indigo)" or use our update site directly.
The update site URL to use from Help > Install New Software... is:
http://download.jboss.org/jbosstools/updates/development/indigo/ http://download.jboss.org/jbosstools/updates/development/indigo/
Note: SOA tooling for BPEL, Drools, Guvnor, jBPM, ESB, Modeshape, pi4soa, Savara, SwitchYard & Teiid are no longer included in the JBoss Tools release. They will be available separately.
h2. JBoss AS 7
The server adapter for JBoss AS 7 had a series improvements done in its handling of remote management and JMX connections. One thing that is relevant is that because of AS 7.1 https://community.jboss.org/community/tools/blog/2012/02/29/excited-about... Secure by default approach when you launch remotely the management services are not autoatmically exposed. We keep that secure-by-default in the tools, but now also provides a simple checkbox to allow you to expose the management service when we launch it to actually remotely manage the server.
https://issues.jboss.org/secure/attachment/12354382/JBIDE-11921.png https://issues.jboss.org/secure/attachment/12354382/JBIDE-11921.png
Of course just exposing the port does not make it fully available before you have added a user to the server. You can read about how to do that in https://community.jboss.org/community/tools/blog/2012/02/29/excited-about... this blog.
And finally the server adapter now works with IPv6, allows deploying outside of the deployments folder and it does not choke on a space in the server part - Hurray!
h2. OpenShift, now faster and more patient
One of the most common bug report we got in the Beta's (thank you for the feedback!) was that when creating OpenShift applications our wizard would time out and you would have to manually import the project again. We now have extended the timeout period to three minutes to accomodate for overloads, network latency etc. but also given you the option to wait some more for the OpenShift provisioning to be fully done.
A new feature of the application creation wizard is also to be able to set the size of the Gear your application will run on and to enable scaling for your applications.
http://docs.jboss.org/tools/whatsnew/openshift/images/gears-and-scaling.png http://docs.jboss.org/tools/whatsnew/openshift/images/gears-and-scaling.png
Mind you that the list of possible gears depends on your users permissions.
Various actions like Tail Files, Environment variables and Port Forwarding which previously were only available in OpenShift Explorer is now also available from the OpenShift server adapter.
http://docs.jboss.org/tools/whatsnew/openshift/images/server-adapter-acti... http://docs.jboss.org/tools/whatsnew/openshift/images/server-adapter-acti...
And for those users with large set of applications or slow networks we've made the loading of OpenShift metadata more incremental giving you faster feedback,especially on networks far away from the OpenShift servers.
h2. Maven and Endorsed Libraries
If you have ever had to fight with using JavaEE 6 Webservices on Java 6 with Maven and Eclipse at the same time you know what a pain having to use that combination can be because JavaEE 6 Webservices are actually using libraries that are not available before Java 7. Meaning you have to configure and setup endorsed libraries in Eclipse, which actually does not have such a feature exposed on projects, but only at the JVM level setup. Thus its "easy" for running applications but not when compiling.
In Maven there are various tricks to solve this and none of them are obeyed/understood by m2eclipse - but not anymore.
http://docs.jboss.org/tools/whatsnew/images/endorsed_libs.png http://docs.jboss.org/tools/whatsnew/images/endorsed_libs.png
We've added a Maven configurator which will look for the common tricks to set and configure endorsed libraries and when they are found inject an "Endorsed Library" classpath container with the approprate classpath entries.
Allowing you to not have to worry about this anymore when using Maven + Eclipse. Fred writes more in detail about how this works in http://docs.jboss.org/tools/whatsnew/maven/maven-news-3.3.0.CR1.html What's New
h2. Pixel Density
And an example of where the little details matters comes that BrowserSim now has controls for pixel density allowing you to get a better and closer representative layout of your mobile applications.
http://docs.jboss.org/tools/whatsnew/vpe/images/3.3.0.CR1/pixel-ratio.png http://docs.jboss.org/tools/whatsnew/vpe/images/3.3.0.CR1/pixel-ratio.png
h2. ...and more
As usual screenshots and more explanation of what is new are available from the http://docs.jboss.org/tools/whatsnew What's New site!
Let us know what you think and remember that http://www.jboss.org/events/JUDCon/2012/boston/agenda/day1track1 Xavier and http://www.jboss.org/events/JUDCon/2012/boston/agenda/day2track1 I will be showing a lot of these features at JUDCon and http://www.redhat.com/summit/ Red Hat Summit w/JBoss World end of this month with a GA release. See you there ?
Have fun,
Max
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/06/12/jboss-tools-a...]
12 years
[jBPM] - Scalable use of Timer Events
by Richard Evans
Richard Evans [https://community.jboss.org/people/r3vans] created the discussion
"Scalable use of Timer Events"
To view the discussion, visit: https://community.jboss.org/message/741461#741461
--------------------------------------------------------------
Hello there,
JBPM 5.1.0 running on Tomcat.
I have a number of processes that invoke async APIs and need to poll for results. I use Timer Events to trigger these checks.The processes all function correctly but I am having problems scaling.
I have a thread pool for starting the processes with kSession.startProcess(); all threads share a StatefulKnowledgeSession.
Processes kick off fine and execute any syncronous tasks. As soon as they hit the timer startProcess returns.
When the timer fires and the process resumes, every process instance seems to be executing in a single timer thread.
This is heavily throttling throughput and I am ending up with hundreds of in-flight processes trikkling through very slowly.
Can I run multiple threads for the timer? I am very happy for a single process instance to be single-threaded but I really want separate processes to run in parallel both before and after the timer.
Any hints? Can I kick off multiple threads for the timer? Would it make a difference if I had multiple sessions?
Many thanks,
Richard
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741461#741461]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - Re: Terminate Active ProcessInstance in jbpm 5.2 using Local Task Service
by Rahul Agrawal
Rahul Agrawal [https://community.jboss.org/people/rahulamt] created the discussion
"Re: Terminate Active ProcessInstance in jbpm 5.2 using Local Task Service"
To view the discussion, visit: https://community.jboss.org/message/741408#741408
--------------------------------------------------------------
I was having the same problem. But I think it was because of the transaction timeout issue. I reperformed the claiming activity, the error was gone.
But I have another issue.
In my web application I am having two tabs for the inbox. One for the tasks pending with the user and other for the tasks of the roles(whose status is ready and can be claimed). Basically these two are user inbox and role inbox respectively. The issue is even when I am claiming the task in the database the task status is not changed. Its ready only. So its not coming in the user inbox(owned tasks) instead coming in the role inbox only. When I am claiming the task again. I get an error saying the status of the task is not matched and sometimes I get the above error.
When I digged dipper into the task, I found that the after I claim the task the task status is not persisted in the database and in the hibernate cache for that particular task object the status is different(Reserved). So while getting the tasks from the database I get the claimed task in the role inbox not in the user inbox.
The similar issue I found with the complete task API.
I am using the following code for completing the task
***public
**
* **static** **void** completeTask(**long** taskId, Map data, String userId) **throws** InterruptedException {
//connect();
++tService++.start(taskId, userId);
ContentData contentData =
**null**;
**if** (data != *null*) {
ByteArrayOutputStream bos =
**new** ByteArrayOutputStream();ObjectOutputStream out;
**try**
{
#
out =
**new** ObjectOutputStream(bos);
out.writeObject(data);out.close();
contentData =
**new** ContentData();
contentData.setContent(bos.toByteArray());
contentData.setAccessType(AccessType.+Inline+
);}
**catch**
(IOException e) {
e.printStackTrace();
}
}
++tService++.complete(taskId, userId, contentData);
//responseHandler.waitTillDone(5000);
}
#
#
If I pass a null Map object to the above method I am getting the similar issue. The task status is not changed. Its still reserved only.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741408#741408]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years