[jBPM] - BPMN equivalent of AssignmentHandler?
by Jamie Balling
Jamie Balling [http://community.jboss.org/people/jballing] created the discussion
"BPMN equivalent of AssignmentHandler?"
To view the discussion, visit: http://community.jboss.org/message/554228#554228
--------------------------------------------------------------
I am successfully using jPDL with an AssignmentHandler to programatically assign a task.
<task name="review" >
<assignment-handler class="mypackage.AssignBySomeRule">
<field name="ruleName">
<string value="exampleAssignmentRuleName" />
</field>
</assignment-handler>
<transition to="approval" />
</task>
Is it possible to accomplish this with BPMN? I know there is a "resourceAssignmentExpression", but it isn't clear that this can do the same thing.
<userTask id="myTask" name="My task">
<potentialOwner resourceRef="manager" jbpm:type="group">
<resourceAssignmentExpression>
<formalExpression>management</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>
</userTask>
Can the "formalExpression" invoke arbitrary java classes or does it need to use process variables to evaluate to a user or group name?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554228#554228]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[JBoss Cache] - How to prevent Jboss cache lock TimeoutException/deaklocks
by Wei Xue
Wei Xue [http://community.jboss.org/people/weix] created the discussion
"How to prevent Jboss cache lock TimeoutException/deaklocks"
To view the discussion, visit: http://community.jboss.org/message/554226#554226
--------------------------------------------------------------
Hi,
We are using jboss cache 3.2.0 in our application which is deployed on jboss 5.1.0.GA AS. I have setup jBoss clustering using farm deployment
with two nodes running in a cluster.
During load testing, we encountered lockTimeoutException on both nodes. I grabbed a piece of information from server.log on two nodes.
Node 1:
2010-07-21 08:31:34,841 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (pool-22-thread-560) [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for mailto:com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@746fee83 com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@746fee83
org.jboss.cache.lock.TimeoutException: Unable to acquire lock on Fqn [*/serverData/31510/serverParams*] after [15000] milliseconds for requestor [GlobalTransaction:<10.17.223.88:58023>:3586]! Lock held by [GlobalTransaction:<10.17.223.89:55770>:3588]
Node 2:
2010-07-21 08:31:32,064 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (Thread-37) [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for mailto:com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@2fdc3f43 com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@2fdc3f43
org.jboss.cache.lock.TimeoutException: Unable to acquire lock on Fqn [*/serverData/31510/serverParams*] after [15000] milliseconds for requestor [GlobalTransaction:<10.17.223.89:55770>:3588]! Lock held by [GlobalTransaction:<10.17.223.88:58023>:3586]
You can find they are blocked by each other. Conceptually one should get a lock, and the other will get lock TimeoutException. But why no one
get this lock?
Here is my jboss cache configuration regarding the locking:
<locking
isolationLevel="REPEATABLE_READ"
lockAcquisitionTimeout="15000"
lockParentForChildInsertRemove="false"
concurrencyLevel="5000"
useLockStriping="false"
/>
How to prevent this happen and why this happens?
Thank you in advance,
Wei
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554226#554226]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - Help for deploying a mail node with MailTemplateRegistry
by Tun Mang
Tun Mang [http://community.jboss.org/people/tunmang] created the discussion
"Help for deploying a mail node with MailTemplateRegistry"
To view the discussion, visit: http://community.jboss.org/message/554222#554222
--------------------------------------------------------------
Hi there:
When deploy a process definition with the following mail node (AuditMailProducer is implemented) as shown below :
#
<mail name='send mail' class='org.example.AuditMailProducer'>
<property name='template'>
<object method='getTemplate'>
<factory><ref type='org.jbpm.pvm.internal.email.impl.MailTemplateRegistry'/></factory>
<arg><string value='rectify-template'/></arg>
</object>
</property>
<property name='auditGroup'><string value='thinkpol'/></property>
<transition to='end' />
</mail>
It throws the following exceptions:
[DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.DeployCmd@18ff27
org.jbpm.api.JbpmException:
Caused by: org.jbpm.pvm.internal.wire.WireException: created factory object is null,
can't invoke method 'getTemplate' on it
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:176)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
at org.jbpm.pvm.internal.wire.operation.PropertyOperation.apply(PropertyOperation.java:27)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:234)
... 30 more
Is it because some service descriptor's entry missing in jbpm.default.cfg.xml ?
Thanks for your help and time.
Tun Mang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554222#554222]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
Re: [jboss-user] [JBoss Microcontainer Development POJO Server] - Implementing a non-flat deployment for Weld Integration
by Flavia Rainone
Flavia Rainone [http://community.jboss.org/people/flavia.rainone%40jboss.com] replied to the discussion
"Implementing a non-flat deployment for Weld Integration"
To view the discussion, visit: http://community.jboss.org/message/554219#554219
--------------------------------------------------------------
> Ales Justin wrote:
>
> How often is this - loadBeanDeploymentArchive - method used?
>
> Or, shouldn't the (potential) operation [Archive|Deployment]::isReachable(Archive other) be O(1),
> a simple hash lookup of pre-build reachable archives / deployments?
I was mentioning keeping only a single map of CL->Archives and bypassing the is reachable check. My argument on this is that is it really possible that Weld will request for a non reachable beanClass? If the beanClass is not reachable from the current deployment CL, the code won't run, because the CL can't load beanClass. Thus, IMHO, I don't think that it is possible that Weld will ever request for a beanClass associated with an Archive that is not visible to the current Deployment. But, as I don't know nothing about Weld implementation, I'm hoping that Pete or Ales will answer this question ;)
Having a pre-built map of reachable archives is totally a different story, i.e., more complex to implement and will incur at an extra cost to maintain (I have again to walk through the graph to be able to define which archives are visible, this time it won't be done at every loadBeanDeploymentArchive request; but it will be done for every pre-existing deployment at every new deployment, and the cost will increase according to the number of Archives we have in Default Domain).
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554219#554219]
Start a new discussion in JBoss Microcontainer Development POJO Server at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
Re: [jboss-user] [Performance Tuning] - Memory consumption 1h after JBoss start
by Peter Johnson
Peter Johnson [http://community.jboss.org/people/peterj] replied to the discussion
"Memory consumption 1h after JBoss start"
To view the discussion, visit: http://community.jboss.org/message/554214#554214
--------------------------------------------------------------
I ageee that your explanation of setting MaxTenuringThreshold to 0 is the commonly accepted advice. But of course, I disagree :D
The problem with setting MaxTenuringThreshold to 0 is that at the time the minor GC takes place you will have a lot of temporary objects that are still in use being promoted to the tenured generation. Then the tenured generation fills up quicker and you end up doing major CMS collections more often. It is usually better to let objects bounce around a few times between the survivor spaces in order to sift out objects that survive only a few collections and are then discarded, thus ensuring that only object that plan to stay around for a while get tenured.Tenuring temporary object is much more expensive than not tenuring long-lived objects.
Test I have done show that the minor collection time, even with MaxTenuringThreshold not set to 0, is consistently less that the two pauses times caused by the CMS collectior for a major collection. In addtion, having MaxTenuringThreshold set to a non-zero value has, in my tests, always outperfomed setting MaxTenuringThreshold to 0 (higher throughput, lower response times). At least, that is what I have observed in the many load tests that I have performed.
Of course, all apps are different - the reader is urged to perform his or her own load tests to see how their apps respond.
And Ruchir, I agree with you that discussions like this are benefitial to the community. :) Hopefully the readers can take our two views into consideration and find what works best for their apps.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554214#554214]
Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months