[Design of JBoss jBPM] - Debug Logging
by bradsdavis
I am going to clean up the trunk today to put isDebugEnabled statements around all log.debug calls.
This will improve efficiency when debugging logs are not enabled.
Please make sure to include log.isDebugEnabled() { log.debug... } around debug logs. If you dont, any string concatenation contained within the debug will occur even if the log is not set to debug.
For example within AbstractTokenBaseCommand, the following statement:
| log.debug("executing " + this);
|
This will result in 1) the to string being called on the object AbstractTokenBaseCommand then 2) the method log.debug being called.
In other words, Java is going to resolve all parameters to method invocations before the method is called. The log statement should instead be:
| if(log.isDebugEnabled())
| {
| log.debug("executing " + this);
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222041#4222041
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222041
15 years, 8 months
[Design of JBoss jBPM] - Recent changes to the TaskService API
by heiko.braun@jboss.com
I did some changes to the TaskService interface:
* Added query methods by participation, i.e.
List findTasksByParticipation(String participation, UserRef user);
* Use IdentityRef (UserRef, GroupRef) where appropriate, i.e.
void assignTask(long taskDbid, UserRef user);
* changed Participant to Participation, i.e.
Participation.getType() = 'candidate'
It looks a little cumbersome in the beginning, but the distinction between user and group references
was necessary. I.e. assignTask(long taskDbid, UserRef user) now makes clear that task can only be assigned to users, not groups. The previous signature 'void assignTask(long taskDbid, String id)' didn't reveil that intention.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221993#4221993
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221993
15 years, 8 months
Re: Graphic Process Modeler
by Thomas Diesler
Hi Adam,
Koen should know. Doesn't the wiki tell you?
-thomas
Adam Kozak wrote:
> Dear Thomas,
>
> I'm sorry for bothering you, but probably recently CVS repository of
> Graphic Process Modeler for jBPM was moved and I cannot find it also on
> anonsvn. Do you know the place where I can find source for this Eclipse
> plugin? Thank you in advance.
>
> Best regards
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
15 years, 8 months