[jBPM] - How to model human-task with sub-employees
by Ryan Peterson
Ryan Peterson [https://community.jboss.org/people/rrpeterson] created the discussion
"How to model human-task with sub-employees"
To view the discussion, visit: https://community.jboss.org/message/722660#722660
--------------------------------------------------------------
Hi guys,
I'm trying to figure out the best way to model the following workflow:
Starting from the top down (let's say CEO), an employee is responsible for submitting a review for their direct employees. Once the review is submitted, that employee is responsible for reviewing their employees. This behavior should repeat until the entire tree of employees within the company is traversed.
I've studied the "Evaluation" example, and this is similar to the behavior I need, except it's not dynamic. It's fixed for a specific number of required reviews. I have also looked into MultipleInstance, that runs a sub-process once for each element in a collection, which is also similar to what I need, except each sub-employee must wait until their subervisor completes their review before being allowed to review the next level of employees. Say for instance a notification is sent when the CEO should review his/her employees, once those reviews are done the next level of employees receive a notification that they need to review their employees, etc.
If anyone has any suggestions how to model this within jBPM5/BPMN I'd really appreciate it!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722660#722660]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - LocalTaskService don't remove listeners, it is a bug?
by gardellajp
gardellajp [https://community.jboss.org/people/gardellajp] created the discussion
"LocalTaskService don't remove listeners, it is a bug?"
To view the discussion, visit: https://community.jboss.org/message/721802#721802
--------------------------------------------------------------
Hi,
Recently I've found that when use LocalTaskService don't remove the listeners that are created in:
public void registerForEvent(EventKey key, boolean remove, EventResponseHandler responseHandler) {
SimpleEventTransport transport =
new SimpleEventTransport(taskServiceSession, responseHandler, remove);
taskServiceSession.getService().getEventKeys().register(key, transport);
}
Notice that a client of this method can't remove it later, becouse the method return void.
This method is called by SyncWSHumanTaskHandler.connect()
private void registerTaskEvents() {
TaskCompletedHandler eventResponseHandler = new TaskCompletedHandler();
TaskEventKey key = new TaskEventKey(TaskCompletedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
key = new TaskEventKey(TaskFailedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
key = new TaskEventKey(TaskSkippedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
}
See that the listeners aren't save to remove later. If don't remove the listeners, they are invoqued later.
I fixed this with an update of LocalTaskService. When register the events, I save each listener to then dispose it.
public void registerForEvent(EventKey key, boolean remove, EventResponseHandler responseHandler) {
SimpleEventTransport transport =
new SimpleEventTransport(taskServiceSession, responseHandler, remove);
taskServiceSession.getService().getEventKeys().register(key, transport);
//ADDED
eventsRegistered.add(new KeyAndTransport(key, transport));
//END ADDED
}
The class KeyAndTransport have two instances variables, the key and the transport. The instance variable eventsRegistered is a collection. Then, when is disconnected, I remove the listeners.
public void disconnect() throws Exception {
// do nothing
// ADDED
removeListeners();
// END ADDED
}
private synchronized void removeListeners() {
for (KeyAndTransport k : eventsRegistered) {
taskServiceSession.getService().getEventKeys().unregister(k.getKey(), k.getTransport());
}
eventsRegistered.clear();
}
I attach the complete file. I want to know if this is a bug or a miss use of this clasess. I have problems when use more than one session, with this change, work well with multiple sessions. Note that in my project I open and close session in each request, so when I close the session (and other resources) I can't remove the listener with the actual API.
Juan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721802#721802]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - Hi I'm new to JBPM, and am trying to set up a working environment. I'm using Centos 6, Java SDK 7u3. I have tried using the installer, and that was largely successful, I'm now working through component by component. I've installed JBoss AS 7.0.2, as 7
by Timothy Charman
Timothy Charman [https://community.jboss.org/people/tcharman] created the discussion
"Hi I'm new to JBPM, and am trying to set up a working environment. I'm using Centos 6, Java SDK 7u3. I have tried using the installer, and that was largely successful, I'm now working through component by component. I've installed JBoss AS 7.0.2, as 7"
To view the discussion, visit: https://community.jboss.org/message/722781#722781
--------------------------------------------------------------
Hi
I'm new to JBPM, and am trying to set up a working environment.
I'm using Centos 6, Java SDK 7u3.
I have tried using the installer, and that was largely successful, I'm now working through component by component.
I've installed JBoss AS 7.0.2, as 7.1.0 didn't seem to want to play with JBPM. I guess it is too new.
I've installed mysql, and deployed drools-guvnor (I believe correctly) against mysql. I'm using guvnor-distribution-wars-5.3.1.Final-jboss-as-7.0.war. Context is drools-guvnor
I've deployed Designer - designer-2.0-jboss7.war - under context designer.
I created the sample app in Eclipse (the hello world one) and check the BPMN into Guvnor. All good so far.
In the Guvnor web UI, I find the BPMN, and try to open it in Designer - I get the "Please wait while loading..." message but nothing more.
In the page, I get a JavaScript error:
namespace is undefined
var splitted = namespace.split("#", 1);
In the server log I get:
12:47:10,232 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-5) Successfully deleted file :/opt/jboss/as/jboss_current/standalone/tmp/vfs/tempfffea734628e24ad/designer.war-f2ef12e22fa5851b/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
12:47:10,232 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-5) Created file:/opt/jboss/as/jboss_current/standalone/tmp/vfs/tempfffea734628e24ad/designer.war-f2ef12e22fa5851b/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
The generated file bpmn2.0jbpm.json exists, has an appropriate last modified timestamp, but is empty.
I notice on my server I installed using the installer, this file is populated, and contains namespace information, which is why, I guess, it works there but not on my new server.
Other things:
I'm using the default package in Guvnor.
I have no credentials set - user logging in as guest.
Other issues with the same symptoms don't seem to apply:
- I'm using Chrome.
- I have no special characters in my map.
Does anyone have any ideas?
Many thanks
Tim
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722781#722781]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[JBoss Tools] - Remote Server Configuration does not match JBoss 7 directory layout
by djabba74
djabba74 [https://community.jboss.org/people/djabba74] created the discussion
"Remote Server Configuration does not match JBoss 7 directory layout"
To view the discussion, visit: https://community.jboss.org/message/722768#722768
--------------------------------------------------------------
Hi
In Eclipse Runtime Server, I'm trying to configure a remote Runtime Server. (JBoss 7.1, running in a CentOS VM).
It looks like the *Remote Server Configuration* is hard coded to the directory structure of JBoss 6 or earlier and does not work with JBoss 7. The "Test" button obviously looks for the existence of path <Remote Server Home> + "/*server*/" + <Remote Server Configuration>
*Problem 1*: The JBoss AS 7 layout obviously does no longer have a "server/" directory.
workaround:
{code}
mkdir server
cd server
ln -s ../standalone
{code}
*Problem 2*: The default value "default" in the field Remote Server Configuration will not work, there is no default/ in JBoss 7.
*Problem 3*: How to specify the standalone-full.xml profile, which resides in the standalone/configuration/ directory?
*Problem 4*: The claim "The remote server is properly configured." by just testing for the existence of the remote directory is far from my expectation of a rudimentary, static server configuration analysis... I pointed it to an empty directory and it still claimed that the remote server is properly configured.
Could someone please confirm my findings?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722768#722768]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - Process and human task variable constraints
by Márton Steierlein
Márton Steierlein [https://community.jboss.org/people/stmarci] created the discussion
"Process and human task variable constraints"
To view the discussion, visit: https://community.jboss.org/message/722735#722735
--------------------------------------------------------------
Greetings!
Our company is planning to utilise jBPM in one of out projects involving business processes. We decided to use jBPM 5.2, and our plan is to store large XML data in process variables (talking about a couple hundred megabytes) and mediate these from (human) task to (human) task and query these from a custom application through the Task Client API. These large files are supposted to be maps by the way and as such they could be even larger. Our 3rd party application would visualize these maps and present a view for clients based on process variables.
My question is, that is it possible for jBPM to store such large data in process variables, and whether are there any constraints regarding the storage limits for these. If you have any experience with such large process variables, I would like to hear your a priori experience regarding the performance impacts or other issues as well.
I appreciate your help and thank you for your time in advance,
Márton
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722735#722735]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month