[jBPM] - Human Task Assignment -- restrict based on process variables
by jemmerling
jemmerling [http://community.jboss.org/people/jemmerling] created the discussion
"Human Task Assignment -- restrict based on process variables"
To view the discussion, visit: http://community.jboss.org/message/644895#644895
--------------------------------------------------------------
Again, I am not proud of the subject line but here is the question:
In general, I want to associate a node or task with a group -- however, subject to some additional restriction.
Using the term "task list" to refer to the set of tasks that an actor may claim, I would like a task to NOT appear in an actor's task list even if the actor belongs to the group associated with the node, based on some additional rules involving the state of the process i.e. its variables.
In particular, there is a rule that I need to enforce that an actor cannot claim a task if they completed some previous task -- in other words, for a given process instance, 2 tasks in particular must always be completed by different actors even if both actors qualify in general to claim a task associated with either node. Of course, many other such rules could be defined, but that is a concrete example that concerns me at the moment.
One reason I ask is because another product I have investigated (i.e. YAWL) does explicitly support such rules IIRC.
To put things in perspective, there are other ways I could achieve this objective however they would be outside jBPM5 e.g. a client app that removes tasks from the user's "view" of the task list according to such a rule. But I would prefer to do this within jBPM5 out of a desire to maintain all business rules in one place (well I suppose the hypothetical client could share the knowledge base with jBPM5).
Thanks!
--JE
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/644895#644895]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 12 months
[Javassist] - Javassist-3.16.0-GA LocalVariableTable invalid length exception
by rcoe67
rcoe67 [http://community.jboss.org/people/rcoe67] created the discussion
"Javassist-3.16.0-GA LocalVariableTable invalid length exception"
To view the discussion, visit: http://community.jboss.org/message/644876#644876
--------------------------------------------------------------
I'm using PowerMock's @PrepareForTest annotation, specifying my own class, DbUtil's QueryRunner.class, DbUtil's ResultSetHandler.class and DataSource.class. Both my own class and QueryRunner.class cause javassist to throw an Invalid Length in LocalVariable Table.
I built from svn trunk the 3.16-GA library, because I saw the same behaviour with 3.15-GA.
java.lang.ClassFormatError: Invalid length 124 in LocalVariableTable in class file org/apache/commons/dbutils/QueryRunner
java.lang.ClassFormatError: Invalid length 1000 in LocalVariableTable in class file com/***/***/query/RemanenceSummaryQuery
The stack trace I receive is dependent on the order in which the clases are declared in the annotation list, i.e. if QueryRunner is before my Query, then I get the QueryRunner exception.
My declaration looks like:
@RunWith( PowerMockRunner.class )
@PrepareForTest( value = { RemanenceSummaryQuery.class, DataSource.class, QueryRunner.class,
ResultSetHandler.class } )
public class RemanenceSummaryQueryTest
If desired, I can upload the profile for my class but not sure how to generate one for QueryRunner.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/644876#644876]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 12 months
Re: [jboss-user] [jBPM] - jBPM5 Developer Guide – Request for Feedback
by Herman Post
Herman Post [http://community.jboss.org/people/hbpost] commented on the document
"jBPM5 Developer Guide – Request for Feedback"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17427#comment-8676
--------------------------------------------------
Hi Mauricio,
We are looking forward to your book - it is greatly needed. While the existing jBPM documentation provides a good overview, much more technical detail is needed. We are particularly interested in Human Tasks and application architecture suggestions. I would not use the pages to explain rules and Fusion since they are explained in other places. I would also like to see examples that are simple and demonstrate just the feature they are about, instead of large complicated examples that require one to understand everything in previous chapters.
Regards
--------------------------------------------------
12 years, 12 months
[jBPM] - jbpm5: recovery on app restart
by Elisabeth Müller
Elisabeth Müller [http://community.jboss.org/people/muellere] created the discussion
"jbpm5: recovery on app restart"
To view the discussion, visit: http://community.jboss.org/message/644859#644859
--------------------------------------------------------------
Hi all,
I need to migrate fromjBPM 4.1 to jBPM 5. I'm trying to undstand how process instance recovery, and especially timer recovery works, but I'm completely confused.
I do have a server application which starts and processes workflows in parallel. Workflow state and history are persisted in an Oracle database.
The workflow execution moves from one stable state to the next stable state, which can be a timer node.
When I'm shutting down my application and restarting it, i need to build up the knowledge base in jbpm 5 as one of the first actions.
My assumption now is that I have to do +recover each process instance separately+ by calling
JPAKnowledgedSession.loadStatefulKnowledgeSession();
At least I have to do this for all process instances which wait for a timer event to happen.
Is this really correct ? I cannot believe that this is really the case. This means that I cannot parallize my applications anymore, but I have to distribute the differnt process instances among them.
Can someone help me out ?
Elisabeth
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/644859#644859]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 12 months
[EJB3] - JBOSS EJB Timers, delete multiple copies.
by David Steel
David Steel [http://community.jboss.org/people/dsteel100] created the discussion
"JBOSS EJB Timers, delete multiple copies."
To view the discussion, visit: http://community.jboss.org/message/639526#639526
--------------------------------------------------------------
I have moved from GlassFish in the past couple of days and I am using JBoss 6 and JBoss Developer Studio (30 day trail) to see if this is the way to go.
I have created a Session Bean that is as follows:
@Stateless
@LocalBean
public class FileMonitorTimer {
@Schedule(second = "*/15", minute = "*", hour = "*", dayOfMonth = "*", month = "*", year = "*")
public void ProcessFiles() {
//do bits here
}
Every time I run the project from the IDE I get another timer instance created, so my questions are:
How do I remove multiple timer copies?
How do I ensure only one timer exists?
I didn't have this issue with GlassFish, but the code is the same.
Dave
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639526#639526]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 12 months