[jboss-user] [jBPM Users] - JBPM 4 dynamic timer duedate

2009-12-10 Thread newcomer1
What is the best practice for setting dynamic duedates on timers in jbpm4?

I have a use case were I need to signal a transition at a specific date/time 
depending on a variable(java.util.Date) in the business process. 

In the example below start is a Date variable on the process and this fails due 
to a classcast exception. This way of setting a dynamic duedate seems to be 
supported in jbpm 3.x. (e.g. 
http://docs.jboss.org/jbpm/v3.2/userguide/html/businesscalendar.html). 


  | 
  | 
  | 
  | 
  | .. 
  | 
  | 

Part of stacktrace:

  | ERROR [ExecuteJobCmd] exception while executing 'ExecuteActivityMessage[11]'
  | 
  | java.lang.ClassCastException: java.util.Date cannot be cast to 
java.lang.String
  | at 
org.jbpm.pvm.internal.job.TimerImpl.setDueDateDescription(TimerImpl.java:76)
  | at 
org.jbpm.pvm.internal.model.ScopeInstanceImpl.createTimer(ScopeInstanceImpl.java:303)
  | at 
org.jbpm.pvm.internal.model.ScopeInstanceImpl.initializeTimers(ScopeInstanceImpl.java:323)
  | at 
org.jbpm.pvm.internal.model.ExecutionImpl.createScope(ExecutionImpl.java:262)

A quick peak in the jbpm source code seems to reveal that the wanted behavior 
is not possible, hence the starting question. Do i need to create and persist 
the timer manually? (e.g. node enter event listener)

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

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


[jboss-user] [jBPM Users] - Re: Accessing the current task of a ProcessInstance and/or h

2009-10-08 Thread newcomer1
Have you found a solution for this? We are have the same use case were we have 
a process with a lot of subprocesses that create several tasks and we need a 
simple way to query for all the tasks for the process including tasks generated 
by its subprocesses. The interfaces have some limitations and we have seen the 
need to create our own custom repositories that works over the jbpm tables for 
some of these queries using oracle specific features to do queries over tree 
structures. 

jBPM seems very configurable and I think many projects will need to extend the 
basic service interfaces and the out of box query support using their own 
commands and extensions. The service interfaces cover the basic and most used 
features and I can understand that the jBPM development team wants to keep them 
slim.

You could create a custom command, but for me it seems like you will not come 
away from a downcast if you for example need to create custom queries using the 
hibernate critereia api.

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

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


[jboss-user] [jBPM Users] - Re: How to start JobExecutor with jBPM 4 + Spring

2009-10-07 Thread newcomer1
"unsavory" wrote : Does anyone have any idea how to start the JobExecutor?  I 
have configured the JobExecutor in the jbpm.cfg.xml file and it is working.  
However, it only seems to run when an asynchronous activity is started (ie: a 
task with a timeout in it is created).
  | 
  | According to the documentation I just need to add this line to my 
jbpm.cfg.xml:
  | 
  | 
  | 
  | I'm concerned because the JobExecutor does not seem to run when the server 
is started such as in a server restart.  Therefore if I had old jobs from 
before the server was shut down, they would not run.
  | 
  | I'm running jBPM 4 in a Spring container if that matters.

We are also running jBPM 4 in spring + JTA and we are not having the same 
problem as you describe. We start our spring context from a simple war project 
that uses a parent spring context loader at the ear level (we are also using 
ejbs). When the application is started the jobexecutor is started automaticly 
as we have setup spring to execute the buildProcessEngine factory method on 
SpringJbpmConfiguration at spring startup (lazy-init=false). 

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

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


[jboss-user] [jBPM Users] - Jbpm 4.1 ProcessEngine.execute() / CommandService

2009-10-07 Thread newcomer1
How can one access the commandservice to execute custom commands in JBpm 4? The 
ProcessEngine interface has a execute() method that tries to get the 
"user.command.service" wiredefinition (which is null by default), so the 
question is: what is the best practice to run custom commands in JBpm 4? Am I 
missing something obvious in my configuration? 

I'm using a Spring setup. 

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

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


[jboss-user] [jBPM Users] - Re: How to get history variables and processInstanceId from

2009-10-06 Thread newcomer1
Is it possible to get the name of the task that was finished from the history? 
To be able to get the name of the finished task one have to first find the task 
in the HIST_TASK table, and then look it up in HIST_ACTINST (activity_name) 
table too?

E.g. is there any plans to simplify the programming model against the history 
tables to traverse relations? E.g. from a HistoryTask instance to its related 
HIST_ACTINST row?

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

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


[jboss-user] [jBPM Users] - Re: What is the best pattern to deny method executions?

2009-10-04 Thread newcomer1
"lzdobylak" wrote : I'm starting learning jBPM and I was wandering what is the 
best pattern to deny method executions?
  | I mean how to prevent calling some methods depending on object state in 
workflow, or even more:
  | In arhitecture Client SWT <-> jboss EJB3 Application with jBPM
  | how to disable some actions on view (ex. in context menu of object)
  | ???
  | Do I need implement it all from scrach? 
  | Is there any support from workflow engine?
  | Is there any good pattern to do this?
  | 
  | Thansk for everyone :

Have you concidered using the gof state pattern?

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

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


[jboss-user] [jBPM Users] - Re: Awesome job with jBPM 4.1

2009-10-03 Thread newcomer1
"unsavory" wrote : I just wanted to say what a great job you guys did with the 
jBPM 4.1 release.  Not only was it released on time, but the support promised 
for Tomcat was also delivered.  Thank you!
  | 
  | As of 3:30AM this morning we now have 2 production application servers 
running jBPM 4.1 in Tomcat with Spring + JPA + Hibernate + JTA + JOTM.
  | 
  | I struggled for a long time trying to get this configuration to work with 
jBPM 4 and I never quite got it working right.  Most of the issues were related 
to the Job Executor which now starts like it is supposed to in this environment 
and actually executes jobs correctly (ie: can find the spring transaction 
manager).  But it all worked as soon as I plugged jBPM 4.1 in.
  | 
  | There are some JTA transaction issues with JOTM I'm struggling with in 
regards to rollbacks on exceptions, but I do not believe it is related to jBPM.
  | 
  | Thanks again for a great product and a great release!

This sounds great! We are running jbpm 4 and had to roll our own transaction 
interceptor (and/or JtaTransaction implementation) to get the jobexecutor to 
play along with spring and jta.

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

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


[jboss-user] [jBPM Users] - Re: Translation of task node from jBPM3 to 4

2009-10-01 Thread newcomer1
"kukeltje" wrote : Yes, use a plain fork-join for this. 

I still have to admit that I think the task-node approach is much easier to 
work with. 

The jbpm documentation should have more information about differences from the 
jbpm 3.x way to model stuff. E.g. to associate tasks with a state.

How would you model a simple scenario as this:

start -> Registered (state) with 2 tasks that are created when the state is 
entered, one that MUST be performed, and one that is optional -> Handle, state 
with several tasks.

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

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


[jboss-user] [jBPM Users] - Re: Translation of task node from jBPM3 to 4

2009-09-30 Thread newcomer1
"kukeltje" wrote : no there is not. And not sure if it will return as it was or 
whether alternative ways (more bpmn like) will be implemented. 
  | 
  | What is the behaviour you need?

Im quite new to BPM and jBPM but I want to re implement an existing jBPM 3.x 
process  in jBPM 4, but the existing process definition uses more or less only 
task-nodes. All the 3.x projects I've seen seems to use task-node definitions 
extensively and there is no examples/documentation in jbpm 4 that covers how to 
achieve the same type of behavior. Seems like what im after is grouping and/or 
fork/join.

The behavior that I want is more or less like this:

When entering a certain state (task-node) I want to create 5 tasks that have to 
be done to transition to the next state. The order these tasks are performed in 
do not matter and should not be enforced.

 
  |
  | 
  | 
  | 
  | 
  |xxx
  |
  |
  |  
  |
  | 
  |
  | 
  |
  |
  | 





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

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


[jboss-user] [jBPM Users] - Re: Translation of task node from jBPM3 to 4

2009-09-29 Thread newcomer1
Bumping this.

Is there any equivalent for task-node in jbpm 4? 

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

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