[jboss-user] [JBoss jBPM] - NullPointerException in Decision.java

2007-05-18 Thread alf_dave
Just to continue the 3.2 Decision discussions...

With the Decision patch (as described in 
http://jira.jboss.com/jira/browse/JBPM-854) applied, I'm getting a NPE at line 
112 in Decision.java.  This is whilst executing against a jbpm 3.1 database 
that's been upgraded to jbpm 3.2.

It seems line 112 can just be removed and that fixes it.  I've raised the 
following JIRA issue http://jira.jboss.com/jira/browse/JBPM-968.

Regards,
Dave
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046879#4046879

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Transition problem on timer

2007-05-18 Thread alf_dave
I've experienced the same issue on 3.2 GA.

I raised the following JIRA issue (with potential fix)... 
http://jira.jboss.com/jira/browse/JBPM-967

Regards,
Dave
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046872#4046872

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Upgrade database schema from 3.1.2 to 3.2

2007-04-30 Thread alf_dave
I've gone through the process of upgrading existing 3.1.2 jbpm instances to 
3.2.  I had to set some default values for new 3.2 columns, most of which had 
reasonable defaults.  However, a version_ column has appeared in several places 
- what is a reasonable default value for the value_ column? I've used 0 for now.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041796#4041796

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041796
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - jBPM Website

2007-04-27 Thread alf_dave
I'm embarrassed to ask, but where is the official jBPM website these days?

Is it http://labs.jboss.com/jbossjbpm/ ?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041347#4041347

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041347
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jBPM 3.1 on-line documentation

2007-04-04 Thread alf_dave
Thanks.  Much appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034532#4034532

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034532
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jBPM 3.1 on-line documentation

2007-04-03 Thread alf_dave
Any update?

We embed jBPM, so our community of workflow developers do not know of the 
starter kit.  Instead, we just point them to the jBPM on-line docs, but the 
contents of the URL have just changed.

We could host the docs ourselves, but rather not do so.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033924#4033924

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033924
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - jBPM 3.1 on-line documentation

2007-03-22 Thread alf_dave
First, congratulations on releasing 3.2 - I look forward to taking for it a 
spin.

Meanwhile, we're still on 3.1, so is there a URL for the 3.1 documentation.  
The existing URL now takes us to 3.2 documentation.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030572#4030572

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030572
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Parallel Review Process: template process definition

2006-10-18 Thread alf_dave
I believe the jBPM community can greatly benefit from a library of 
demo/template process definitions for common workflows.  

The current code samples, docs & references to workflow patterns concentrate on 
the low level building blocks, but it requires a blind jump and effort to pull 
together the blocks into a coherent workflow.

So, to start, I'd like to put forward the following template definition for 
supporting a review & approve process where 'N' parallel reviewers can approve 
or reject.  Approval is only reached when a specified percentage of the 
reviewers approve.

A custom 'ForEachFork' (modified from the contribution on the wiki) is used to 
implement the parallel part.  The process variables 'reviewers' (a list) and 
'required_approve_percent' need to be provided when starting the workflow.

Is there a better way?

Would it be useful to start a library of these on the WIKI?

Regards,
David Caruana
Alfresco



  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | approve_count = 0;
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | #{reviewers}
  | reviewer
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | taskInstance.actorId = reviewer;
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | approve_count = approve_count +1;
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |
  |   
  |   
  |   approve_percent = ((approve_count * 100) / 
reviewers.size());
  |   
  |
  | 
  | 
  | 
  | #{approve_percent >= 
required_approve_percent}
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

The ForEachFork.java:


  | 
  | import java.util.ArrayList;
  | import java.util.Collection;
  | import java.util.List;
  | 
  | import org.dom4j.Element;
  | import org.jbpm.graph.def.ActionHandler;
  | import org.jbpm.graph.def.Node;
  | import org.jbpm.graph.def.Transition;
  | import org.jbpm.graph.exe.ExecutionContext;
  | import org.jbpm.graph.exe.Token;
  | import org.jbpm.instantiation.FieldInstantiator;
  | import org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator;
  | 
  | 
  | /**
  |  * For each "item in collection", create a fork.
  |  */
  | public class ForEachFork implements ActionHandler
  | {
  | private static final long serialVersionUID = 4643103713602441652L;
  | 
  | private Element foreach;
  | private String var;
  | 
  | 
  | /**
  |  * Create a new child token for each item in list.
  |  * 
  |  * @param executionContext
  |  * @throws Exception
  |  */
  | @SuppressWarnings("unchecked")
  | public void execute(final ExecutionContext executionContext)
  | throws Exception
  | {
  | //
  | // process action handler arguments
  | //
  | 
  | if (foreach == null)
  | {
  | throw new Exception("forEach has not been provided");
  | }
  | 
  | // build "for each" collection
  | List forEachColl = null;
  | String forEachCollStr = foreach.getTextTrim();
  | if (forEachCollStr != null)
  | {
  | if (forEachCollStr.startsWith("#{"))
  | {
  | Object eval = 
JbpmExpressionEvaluator.evaluate(forEachCollStr, executionContext);
  | if (eval == null)
  | {
  | throw new Exception("forEach expression '" + 
forEachCollStr + "' evaluates to null");
  | }
  | 
  | // expression evaluates to string
  | if (eval instanceof String)
  | {
  | String[] forEachStrs = ((String)eval).trim().split(",");
  | forEachColl = new ArrayList(forEachStrs.length);
  | for (String forEachStr : forEachStrs)
  | {
  | forEachColl.add(forEachStr);
  | }
  | }
  | 
  | // expression evaluates to collection
  | else if (eval instanceof Collection)
  | {
  | forEachColl = (List)eval;
  | }
  | }
  | }
  |

[jboss-user] [JBoss jBPM] - Token lifecycle with fork and join

2006-10-17 Thread alf_dave
Jbpm 3.1.2

I have a simple process which includes a fork and join.  It functions as one 
would expect, however, I do have a query regarding the lifetime of tokens 
during the process execution.

Upon reaching the fork, child tokens are created; one for each path.  When all 
child paths reach the join, the process continues.   However, if I use 
ProcessInstance.findAllTokens() at this point, it returns the child tokens for 
the previous fork & join.  Each token is still active (according to 
Token.hasEnded()).

Is this correct?

I would at least expect those child tokens to have been ended.  Actually, I 
wouldn't expect to get those tokens from findAllTokens(), as that's all 
happened in the past.

Any light on this subject appreciated?

Regards,
David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978793#3978793

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978793
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: log.debug

2006-09-26 Thread alf_dave
Raised - http://jira.jboss.com/jira/browse/JBPM-756.

Thanks,
Dave


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974192#3974192

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974192
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Variable instances

2006-09-26 Thread alf_dave
Hi Tom,

Whilst investigating 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74267, I stumbled upon 
how they are created.  The referred to thread describes how they got there.

Thanks,
David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974198#3974198

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: unable to delete process instance

2006-09-26 Thread alf_dave
Hi Tom,

It's taken a while to get to a concise reproducible case!

I've raised http://jira.jboss.com/jira/browse/JBPM-757 which provides a 
description of the issue and concise test case.

Thanks,
David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974197#3974197

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974197
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - log.debug

2006-09-21 Thread alf_dave
JBPM 3.1.2

In VariableContainer.java there are unprotected log.debug statements such as:

log.debug("create variable '"+name+"' in '"+this+"' with value '"+value+"'");

This is fine for simple values such as strings etc, but we have some object 
types whose toString() is a little more heavy.  Even when debugging is switched 
off, the toString for value is being called.

Can these calls be wrapped in log.isDebugEnable() in future versions of JBPM?

Should I raise a JIRA issue?

Thanks,
David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973204#3973204

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973204
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Variable instances

2006-09-21 Thread alf_dave
What does it mean when a variable instance in the jbpm_variable instance table 
has no associated token_, tokenvariablemap_, processinstance_ and taskinstance_ 
?

David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973185#3973185

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973185
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: unable to delete process instance

2006-09-21 Thread alf_dave
JBPM 3.1.2

With 3.1.2, I get similar constraint violations from FK_VARINST_TKVARMP, in the 
table "JBPM_VARIABLEINSTANCE".

I too manually delete variable instances before deleting the process instance, 
but I still have cases where this does not work resulting in the above 
constraint violation.  I'm attempting to find a simple reproducible test case, 
but don't have one yet.

Anyone have any reliable code for deleting a process instance?  Thanks.

Should I raise a bug in JIRA?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973184#3973184

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973184
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Alfresco has embedded jBPM

2006-08-25 Thread alf_dave
Hi jBPM developers and contributors,

For the last couple of months we've been embedding jBPM into Alfresco.  We've 
found the quality of the jBPM code, documentation and examples to be very good 
and haven't really needed to use this forum too much!  Excellent work.

The integration has involved:

1) Layering the Alfresco Web Client User Interface onto jBPM - this means using 
our own meta-data support to describe the data required by a process and each 
task and having that drive the Alfresco UI dialogs.
2) Encapsulating jBPM behind a service-oriented API - potentially allowing RMI 
or Web Service access.
3) Allowing jBPM process context and task variables to reference objects inside 
the Alfresco Content Repository - jBPM beanshell scripts can navigate the 
repository and perform operations (such as checkout,checkin, 
transform).
4) Using Spring Modules to tie Alfresco & jBPM persistence and transactions
5) Hooking into various jBPM plug-in points such as Value Converters, Task 
Factory etc

I understand that work around task meta-data and task dialog rendering is 
taking place for 3.2.  We'd be happy to share our experience in this area.

A preview of this integration will be available soon - some documentation can 
be found on our wiki at http://wiki.alfresco.com/wiki/Workflow.

Thanks.

David Caruana,
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967556#3967556

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967556
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Error handling in GPD process deployment

2006-08-09 Thread alf_dave
GPD 3.0.11, JBPM 3.1.2

I've noticed the error handling to be erratic when deployment of a process 
archive from the GPD fails.  Often, a dialog is presented stating the 
deployment succeeded when in fact it hasn't.  Other times, a dialog is 
presented due to an unexpected error.  Two extremes.

The deploy servlet returns arbitrary messages in the response for certain 
exceptions e.g. FileUploadException, IOException, but for others, just leaves 
the exception to propagate, presumably forcing an HTTP error response.  
However, for valid HTTP responses, it seems the content is completely ignored 
by the GPD.

Obviously, an improvement would be to present the cause of the error in the GPD 
and to also catch all errors.

However, I raise this as I'm developing my own deploy servlet to fit the setup 
of our server, but it's not clear what the protocol is for reporting an error.  
 For now, I've kept as close as I can to the error handling in UploadServlet.

David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964151#3964151

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964151
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: 3.2 Timeline?

2006-07-25 Thread alf_dave
Thanks for the prompt responses.

Given our timelines (heading for a 1.4 qa cycle in sept), I think it's best to 
stick with 3.1.2 for now.  However, your plans for 3.2 sound ideal, allowing us 
to try early 3.2 drops on our 1.5 dev line.

Initially, we're going to build JSF components (inbox, start process, task view 
) that integrate with the rest of Alfresco's JSF based UI and look & feel.  
Over time, we'll introduce more workflow interaction within Alfresco.

I'm not the JSF expert, but members of our team have now gained deep experience 
from developing the Alfresco UI (and DCTM's Webtop) of this type of technology. 
 I'm sure we can help each other.

Our WCM team will be introducing Chiba into our stack, so who knows, we may in 
the future use xforms for managing tasks etc.  We're just taking it 
step-by-step for now :-)

Regards,
David

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960622#3960622

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960622
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Process instance export & import

2006-07-24 Thread alf_dave
Anyone have any advice / experience of exporting and importing process 
instances?  Obviously, a db dump / load could be used, but I wonder if an xml 
based export / import is available.  In particular, to support the migration 
from one make of database to another e.g. mysql to oracle.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960537#3960537

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960537
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - 3.2 Timeline?

2006-07-24 Thread alf_dave
I understand you're busy working on 3.2, but are there any public release dates 
you're aiming for.

This is so we can determine whether to stick with 3.1.2 or move to 3.2 head  
for our own development cycle.

Thanks,
David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960535#3960535

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960535
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: GPD deployment and commons file upload version

2006-07-24 Thread alf_dave
Thanks - that worked well.

Regards,
David Caruana
Alfresco

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960456#3960456

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960456
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - GPD deployment and commons file upload version

2006-07-24 Thread alf_dave
Hi,

After some "tweaking" of the jBPM Console Webapp, I've managed to loosely 
integrate the bpm stack with Alfresco's tomcat stack (thanks to some help from 
Spring Modules), such that db connections, transactions etc are shared between 
jBPM and Alfresco.  By "tweaking", I mean I've had to modify some oddities 
around using request scoped beans, request parameters, assigning unique ids to 
controls and using Alfresco's logged-in username for task list retrieval etc - 
I'm not the JSF expert, but for now it helps us test jBPM in the context of 
Alfresco's stack.  

Btw, we do intend to build Alfresco specific UI for task handling within 
Alfresco, but otherwise we intend to fully embed the jBPM engine as is (plus 
extensions).

So, my first question, of which I'm sure there will be plenty more!

Our stack is using commons-file-upload v1.1.1, and it seems this is 
incompatible with the GPD v3.1.2 deployment process.  The gpd is passing a 
request containing a Content-type whose multipart seperator is "," whereas the 
file-upload utility is looking for ";" - file-upload v1.0 seems to check for 
"," (or at least it works).  I think http specifices ";".

Any ideas how to work-around this?  I don't really want to have a special build 
of the GPD v3.1.2 (at least for now).   Will v3.2 (HEAD) change this request?  
Unfortunately, we have to use file-upload v1.1.1 for portal compatibility.

David Caruana
Alfresco


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960373#3960373

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960373
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user