Re: [jboss-user] [JBoss Tools] - How to use JBoss AS 7 Beta 2 with JBoss Tools & Developer Studio
by henk de boer
henk de boer [http://community.jboss.org/people/henk53] commented on
"How to use JBoss AS 7 Beta 2 with JBoss Tools & Developer Studio"
To view all comments on this blog post, visit: http://community.jboss.org/community/tools/blog/2011/04/18/how-to-use-jbo...
--------------------------------------------------
> If you really want to use exploded deployments
For people reading this who may not know what the benefits of exploded deployments are: it allows you to deploy incrementally. Meaning, change a Facelet, refresh your browser and see the change.
Packaged deployment necessitates restarting the entire server for every little change. For one reason or the other, this is the default in most (all?) server adapters that ship with WTP and (correct me if I'm wrong), is also seen as the "Java EE way of doing things". Luckily JBoss AS and JBoss tools also support exploded and incremental deployments (it's even the default in JBoss tools).
Just hoping that JBoss AS 7 and JBoss Tools 3.3 will keep supporting this ;)
--------------------------------------------------
14 years, 11 months
[jBPM] - Maven build failed for jBPM 5.1 source
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"Maven build failed for jBPM 5.1 source"
To view the discussion, visit: http://community.jboss.org/message/601871#601871
--------------------------------------------------------------
I downloaded the jBPM 5.1 source (jbpm-5.1.0.M1-src.zip) and tried to run a build with Maven and it failed in the jbpm-persistence-jpa. Here is my stack:
Apache Maven 3.0.1 (r1038046; 2010-11-23 05:58:32-0500)
Java version: 1.6.0_23
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Attached is the build output along with the unit tests that failed. Seems the unit tests can communicate with the database and they are getting back the wrong number of results. Is there some platform dependent cleanup that is not happening between tests or something? I'm rather new to Maven and was really hoping this would work right out of the box. I kicked off the build with mvn clean install -X > build.log. I would appreciate the help if anyone has any suggestions on what might be wrong and what I might do to fix it.
Jim
Failed tests:
testUserTransactions(org.jbpm.persistence.session.PersistentStatefulSessionTest)
testPersistenceWorkItems(org.jbpm.persistence.session.PersistentStatefulSessionTest)
testPersistenceRuleSet(org.jbpm.persistence.session.PersistentStatefulSessionTest)
testPersistenceVariables(org.jbpm.persistence.session.VariablePersistenceStrategyTest)
testPersistenceVariablesWithTypeChange(org.jbpm.persistence.session.VariablePersistenceStrategyTest)
testWorkItemWithVariablePersistence(org.jbpm.persistence.session.VariablePersistenceStrategyTest)
testPersistenceWorkItems(org.jbpm.persistence.session.SingleSessionCommandServiceTest)
testPersistenceWorkItemsUserTransaction(org.jbpm.persistence.session.SingleSessionCommandServiceTest)
Tests run: 42, Failures: 8, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jBPM .............................................. SUCCESS [1.828s]
[INFO] jBPM :: Flow ...................................... SUCCESS [59.952s]
[INFO] jBPM :: Flow Builder .............................. SUCCESS [52.311s]
[INFO] jBPM :: JPA Persistence ........................... FAILURE [54.155s]
[INFO] jBPM :: BAM ....................................... SKIPPED
[INFO] jBPM :: BPMN2 ..................................... SKIPPED
[INFO] jBPM :: WorkItems ................................. SKIPPED
[INFO] jBPM :: Human Task ................................ SKIPPED
[INFO] jBPM :: GWT ....................................... SKIPPED
[INFO] jBPM :: GWT Console ............................... SKIPPED
[INFO] jBPM :: GWT Console Forms ......................... SKIPPED
[INFO] jBPM :: GWT Console Graph Viewer .................. SKIPPED
[INFO] jBPM :: GWT Console WAR ........................... SKIPPED
[INFO] jBPM :: GWT console server WAR .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/601871#601871]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - Re: Difference between WorkItemHandler and TaskHandler
by Mauricio Salatino
Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion
"Re: Difference between WorkItemHandler and TaskHandler"
To view the discussion, visit: http://community.jboss.org/message/601812#601812
--------------------------------------------------------------
Yes you are right, some of the names are clashing there. I will fire a Jira issue to fix them as appropriate.
One way to get things clear is to say that all the classes inside the org.jbpm.bpmn2.xml package are internal to the parser and should not be used when you are developing a process, because they are internal to the framework.
For domain specific activities you should use WorkItemHandlers that are the generic way of interacting with external entities from the process perspective. If the activity is done by a Human or a System doesn't care for the engine. We provide some HumanTask related work Item handlers (that's where the name clashes) but using any IDE you can take a look at the source and realize that they all extends WorkItemHandler, as you notice.
Greetings.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/601812#601812]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - Re: Is there any WebServices implementation of serviceTask?
by Mauricio Salatino
Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion
"Re: Is there any WebServices implementation of serviceTask?"
To view the discussion, visit: http://community.jboss.org/message/601811#601811
--------------------------------------------------------------
That's right. BPEL was designed to work with web services only. That's why you can use it natively there. in jBPM5 because we support any type of interaction you need to create a new WorkItemHandler (or reuse one) for each type of interaction. You can try creating one abstract enough to be used in different scenarios via some parametrization or configuration.
I'm not sure to understand completly your last paragraph (it was a question?). But in a brief yes, you create a WorkItemHandler that it's associated using a String to a specific runtime. That means that you can have different runtimes that uses different handlers, this is usually very interesting to deal with a process execution in different environment, like for example: developement, testing & production without changing anything inside the process.
Greetings.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/601811#601811]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - HQL activity - parameters with EL evaluated values
by James Baker
James Baker [http://community.jboss.org/people/jimmyb82] created the discussion
"HQL activity - parameters with EL evaluated values"
To view the discussion, visit: http://community.jboss.org/message/561825#561825
--------------------------------------------------------------
Hi,
I've been searching around the documentation, tutorials and forums (for two days) to try to understand how I specify parameters to the HQL activity where the value is defined in the execution context.
I'm using jBPM 4.4 and JBoss EAP 5.0.
I've tried to specify my HQL node in various fashions bearing in mind there is a executionContext var called invoiceId and it is a Long: -
<hql name="Check invoice" g="258,162,117,52" var="invoice" unique="true">
<query>from Invoice i where i.invoiceId = :invoiceId</query>
<parameters>
<string name="invoiceId" value="#{invoiceId}" />
</parameters>
<transition name="Check paid" to="Paid?" g="-62,-4"/>
</hql>
This tries to pass the text as a String with the value "#{invoiceId}"
If i try to do this with a <long /> then it won't even deploy my process.
It seemed like i should use a reference as follows: -
<hql name="Check invoice" g="258,162,117,52" var="invoice" unique="true"> <query>from Invoice i where i.invoiceId = :invoiceId</query> <parameters>
<ref object="invoiceId" />
</parameters>
<transition name="Check paid" to="Paid?" g="-62,-4"/>
</hql>
but this fails because org.jbpm.jpdl.internal.activity.HQLActivity uses the set named parameter methods and there is no way to pass anonymous parameters. It is an anonymous parameter because the ReferenceDescriptor class returns null for getName() and there is no way to specify a name for <ref /> under the http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl namespace.
According to this feature request https://jira.jboss.org/browse/JBPM-2279 https://jira.jboss.org/browse/JBPM-2279 we should be able to use EL but there is no reference in the documentation as to how.
Can anyone help?
P.S sorry if this comes out badly formatted, it's my first post.
James
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/561825#561825]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - Re: blocking task in start-state does not block
by Maurice de Chateau
Maurice de Chateau [http://community.jboss.org/people/MohReece] created the discussion
"Re: blocking task in start-state does not block"
To view the discussion, visit: http://community.jboss.org/message/601737#601737
--------------------------------------------------------------
Hey László,
The point you're missing here is that a task in a start-state has a different purpose than one in a task-node (which is, admittedly, not very clear from the documentation, but could be derived from http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#swimlaneinstarttask this section).
If you look at the jPDL definition, you'll see that there are only two node types that support tasks:
* task-node: for human tasks that are part of your business process and are assigned, started and ended *while the process is running*. It has support for the full task lifecycle (e.g. through the optional attributes create-tasks and end-tasks), including the 'blocking' semantics.
* start-state: for the sole purpose of being able *to start a process* by means of a human task. And therefore, blocking this makes no sense.
Take a closer look at the http://community.jboss.org/message/390487#390487 unit test that is shown in the thread you referred to, and you'll see that in the test that has a task in its start-state, the process is started through a createStartTaskInstance() - taskInstance.end() sequence, before the token ends up waiting in the '+going steady+' state.
Your unit test starts the process in a different way (through the signal() call on the ProcessInstance). While this is still possible (i.e. having a task in the start-state doesn't prevent you from starting the process in another manner), it also means that in this case that task has no use anymore for this particular instance of the process, and therefore it is ignored completely.
So if you set out to have a blocking task as the first thing in your process, you need to do so with a task-node that directly follows your start-state. And actually, that's pretty much what you've done in your second unit test - but you just as well may omit your not-so-blocking task from the process definition. ;)
Regards,
Maurice
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/601737#601737]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months