[jBPM] - Re: Call Activity and Process Data Input
by Francesco Pietrobelli
Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion
"Re: Call Activity and Process Data Input"
To view the discussion, visit: http://community.jboss.org/message/606906#606906
--------------------------------------------------------------
The simplest way to pass something to a process called by a call activity that i found is the following:
* In subProcess define a property, for example a property with id set to "subProcessProperty"
* In superProcess 1. define a property, for example a property with id set to "superProcessProperty"
2. define a call activity with ioSpecification that has a dataInput with arbitrary id and name identical to id of subProcess property (i.e. subProcessProperty), then define a dataInputAssociation of call activity with source set to superProcessProperty and target set to dataInput's id
But I don't like very much this solution because in my opinion it isn't the best usage of the bpmn2.0 standard and details are hidden from the process's graph.
Francesco
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606906#606906]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - Spring MBean Server Conversion from LazyMBeanServer To MBeanServer
by Kevin Urciolo
Kevin Urciolo [http://community.jboss.org/people/greenbean] created the discussion
"Spring MBean Server Conversion from LazyMBeanServer To MBeanServer"
To view the discussion, visit: http://community.jboss.org/message/606098#606098
--------------------------------------------------------------
I am migrating code from JBoss 4.0.5.GA to JBoss 6.0. Much of the code uses Spring 3.0.3. I placed the Spring DIST jars in the JBoss common/lib directory. However, when my applications launch, I get the following error:
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.jboss.system.server.jmx.LazyMBeanServer] to required type [javax.management.MBeanServer] for property 'mbeanServer': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231) [:3.0.3.RELEASE]
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447) [:3.0.3.RELEASE]
... 100 more
Do you know what can cause this type of problem? It seems the LazyMBeanServer should implement the javax.management.MBeanServer, so I am not sure why it is complaining. This worked fine in the older version of JBoss.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606098#606098]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
Help compiling mod_cluster
by fernando@lozano.eti.br
Hi there,
Got mod_cluster 1.1.2.GA from SVN:S svn co
http://anonsvn.jboss.org/repos/mod_cluster/tags/1.1.2.Final/
then tried to build, following instructions from the UserGuide, but it
fails:S mvn -U -P dist package[INFO] Scanning for projects...[INFO]
[INFO]
------------------------------------------------------------------------[INFO]
Building mod_cluster 1.1.2.Final[INFO]
------------------------------------------------------------------------Downloading:
http://repository.jboss.org/nexus/content/groups/public/trove/trove/2.1.1...:
http://repo1.maven.org/maven2/trove/trove/2.1.1/trove-2.1.1.pomDownloading:
http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pomDownl...:
http://repository.jboss.org/nexus/content/groups/public/jpl-pattern/jpl-p...:
http://repo1.maven.org/maven2/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0...
The POM for jpl-pattern:jpl-pattern:jar:1.0 is missing, no dependency
information availableDownloading:
http://repository.jboss.org/nexus/content/groups/public/jpl-util/jpl-util...:
http://repo1.maven.org/maven2/jpl-util/jpl-util/1.0/jpl-util-1.0.pom[WARN...
The POM for jpl-util:jpl-util:jar:1.0 is missing, no dependency information
availableDownloading:
http://repository.jboss.org/nexus/content/groups/public/trove/trove/2.1.1...:
http://repo1.maven.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom[WARNING]
The POM for trove:trove:jar:2.1.1 is missing, no dependency information
available[INFO]
------------------------------------------------------------------------[INFO]
BUILD FAILURE[INFO]
------------------------------------------------------------------------[INFO]
Total time: 7.956s[INFO] Finished at: Tue May 24 20:28:21 GMT-03:00
2011[INFO] Final Memory: 13M/170M[INFO]
------------------------------------------------------------------------[ERROR]
Failed to execute goal on project mod_cluster: Could not resolve
dependencies for project org.jboss.mod_cluster:mod_cluster:jar:1.1.2.Final:
Failed to collect dependencies for [net.jcip:jcip-annotations:jar:1.0
(compile), javax.servlet:servlet-api:jar:2.5 (provided),
jboss.web:jbossweb:jar:2.1.7.GA (compile?),
org.jboss.logging:jboss-logging-jdk:jar:2.1.1.GA (compile?),
org.jboss.cluster:jboss-ha-server-api:jar:1.1.1.GA (compile?),
org.jboss.microcontainer:jboss-kernel:jar:2.0.10.GA (compile?),
org.jboss:jbossxb:jar:2.0.1.GA (compile?), junit:junit:jar:4.8.1 (test),
org.easymock:easymock:jar:3.0 (test),
org.jboss.test:jboss-test:jar:1.1.9.GA (test),
org.jboss.jbossas:jboss-as-server:jar:5.1.0.GA (test),
commons-codec:commons-codec:jar:1.3 (compile?),
commons-httpclient:commons-httpclient:jar:3.1 (compile?),
jfree:jfreechart:jar:1.0.12 (compile?)]: Failed to read artifact descriptor
for trove:trove:jar:2.1.1: Could not transfer artifact
trove:trove:pom:2.1.1 from/to jboss (http://repository.jboss.org/maven2):
Access denied to:
http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom ->
[Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run
Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable
full debug logging.[ERROR] [ERROR] For more information about the errors
and possible solutions, please read the following articles:[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExce...
Running Maven 3.3, clean install from ASF download, under Sun JDK and
Fedora 14:
S mvn --versionApache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)Maven
home: /home/lozano/apache-maven-3.0.3Java version: 1.5.0_22, vendor: Sun
Microsystems Inc.Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.22/jreDefault
locale: pt_BR, platform encoding: UTF-8OS name: "linux", version:
"2.6.35.12-90.fc14.x86_64", arch: "amd64", family: "unix"
If I change to OpenJDK from the distro, same results:
S mvn --versionApache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)Maven
home: /home/lozano/apache-maven-3.0.3Java version: 1.6.0_20, vendor: Sun
Microsystems Inc.Java home:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jreDefault locale: pt_BR,
platform encoding: UTF-8OS name: "linux", version:
"2.6.35.12-90.fc14.x86_64", arch: "amd64", family: "unix"
I also tried the maven 2.2.1 from the distro, again same results. :-(
S mvn --version/usr/lib/jvm/javaApache Maven 2.2.1
(rNON-CANONICAL_2010-12-06_15-01_mockbuild; 2010-12-06 13:01:36-0200)Java
version: 1.6.0_20Java home:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jreDefault locale: pt_BR,
platform encoding: UTF-8OS name: "linux" version:
"2.6.35.12-90.fc14.x86_64" arch: "amd64" Family: "unix"[lozano@hpslim
1.1.2.Final]S [lozano@hpslim 1.1.2.Final]S [lozano@hpslim 1.1.2.Final]S mvn
-P dist package/usr/lib/jvm/java[INFO] Scanning for projects...[INFO]
------------------------------------------------------------------------[INFO]
Building mod_cluster[INFO] task-segment: [package][INFO]
------------------------------------------------------------------------*DEBUG*:
Putting in plugin descriptor list
org.apache.maven.plugins:maven-resources-plugin:2.4.1 and goal prefix is
resources*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-resources-plugin:2.4.1 and goal prefix is
resources*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-resources-plugin:2.4.1*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-resources-plugin:2.4.1*DEBUG*: Putting in
plugin descriptor list org.apache.maven.plugins:maven-compiler-plugin:2.0.2
and goal prefix is compiler*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-compiler-plugin:2.0.2 and goal prefix is
compiler*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-compiler-plugin:2.0.2*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-compiler-plugin:2.0.2*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-resources-plugin:2.4.1*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-compiler-plugin:2.0.2*DEBUG*: Putting in
plugin descriptor list org.apache.maven.plugins:maven-surefire-plugin:2.4.3
and goal prefix is surefire*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-surefire-plugin:2.4.3 and goal prefix is
surefire*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-surefire-plugin:2.4.3*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-surefire-plugin:2.4.3*DEBUG*: Putting in
plugin descriptor list org.apache.maven.plugins:maven-jar-plugin:2.2 and
goal prefix is jar*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-jar-plugin:2.2 and goal prefix is
jar*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-jar-plugin:2.2*DEBUG*: Constructed plugin
version key is org.apache.maven.plugins:maven-jar-plugin:2.2*DEBUG*:
Putting in plugin descriptor list
org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1 and goal prefix
is enforcer*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1 and goal prefix
is enforcer*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1*DEBUG*:
Constructed plugin version key is
org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1*DEBUG*: Putting
in plugin descriptor list
org.apache.maven.plugins:maven-source-plugin:2.1.1 and goal prefix is
source*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-source-plugin:2.1.1 and goal prefix is
source*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-source-plugin:2.1.1*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-source-plugin:2.1.1*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-compiler-plugin:2.0.2*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-surefire-plugin:2.4.3*DEBUG*: Putting in
plugin descriptor list org.apache.maven.plugins:maven-dependency-plugin:2.1
and goal prefix is dependency*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-dependency-plugin:2.1 and goal prefix is
dependency*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-dependency-plugin:2.1*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-dependency-plugin:2.1*DEBUG*: Putting in
plugin descriptor list org.apache.maven.plugins:maven-antrun-plugin:1.3 and
goal prefix is antrun*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-antrun-plugin:1.3 and goal prefix is
antrun*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-antrun-plugin:1.3*DEBUG*: Constructed plugin
version key is org.apache.maven.plugins:maven-antrun-plugin:1.3*DEBUG*:
Putting in plugin descriptor list
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-4 and goal prefix
is assembly*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-4 and goal prefix
is assembly*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-4*DEBUG*:
Constructed plugin version key is
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-4*DEBUG*: Putting
in plugin descriptor list
org.apache.maven.plugins:maven-release-plugin:2.0-beta-9 and goal prefix is
release*DEBUG*: Putting in plugin descriptor list
org.apache.maven.plugins:maven-release-plugin:2.0-beta-9 and goal prefix is
release*DEBUG*: Constructed plugin version key is
org.apache.maven.plugins:maven-release-plugin:2.0-beta-9*DEBUG*:
Constructed plugin version key is
org.apache.maven.plugins:maven-release-plugin:2.0-beta-9*DEBUG*:
Constructed plugin version key is
org.apache.maven.plugins:maven-resources-plugin:2.4.1*DEBUG*: Constructed
plugin version key is
org.apache.maven.plugins:maven-jar-plugin:2.2Downloading:
http://repository.jboss.org/nexus/content/groups/public//trove/trove/2.1....
Unable to find resource 'trove:trove:pom:2.1.1' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom[WARN...
Unable to get resource 'trove:trove:pom:2.1.1' from repository jboss
(http://repository.jboss.org/maven2): Authorization failed: Access denied
to:
http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pomDownl...:
http://repo1.maven.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom[INFO]
Unable to find resource 'trove:trove:pom:2.1.1' in repository central
(http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla modeDownloading:
http://repository.jboss.org/nexus/content/groups/public//jpl-pattern/jpl-...
Unable to find resource 'jpl-pattern:jpl-pattern:pom:1.0' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repo1.maven.org/maven2/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0...
Unable to find resource 'jpl-pattern:jpl-pattern:pom:1.0' in repository
central (http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla modeDownloading:
http://repository.jboss.org/nexus/content/groups/public//jpl-util/jpl-uti...
Unable to find resource 'jpl-util:jpl-util:pom:1.0' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repo1.maven.org/maven2/jpl-util/jpl-util/1.0/jpl-util-1.0.pom[INFO]
Unable to find resource 'jpl-util:jpl-util:pom:1.0' in repository central
(http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla modeDownloading:
http://repository.jboss.org/nexus/content/groups/public//trove/trove/2.1....:
http://repository.jboss.org/nexus/content/groups/public//jpl-pattern/jpl-...:
http://repository.jboss.org/nexus/content/groups/public//jpl-util/jpl-uti...:
http://repository.jboss.org/nexus/content/groups/public//javax/security/j...
Unable to find resource 'javax.security:jaas:jar:1.0.01' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repo1.maven.org/maven2/javax/security/jaas/1.0.01/jaas-1.0.01.jar[...
Unable to find resource 'trove:trove:jar:2.1.1' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.jar[INFO]
Unable to find resource 'jpl-pattern:jpl-pattern:jar:1.0' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repo1.maven.org/maven2/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0...
Unable to find resource 'jpl-util:jpl-util:jar:1.0' in repository
repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)Downloading:
http://repo1.maven.org/maven2/jpl-util/jpl-util/1.0/jpl-util-1.0.jar[INFO]
Unable to find resource 'javax.security:jaas:jar:1.0.01' in repository
central (http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla mode[WARNING] Unable to get
resource 'trove:trove:jar:2.1.1' from repository jboss
(http://repository.jboss.org/maven2): Authorization failed: Access denied
to:
http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.jarDownl...:
http://repo1.maven.org/maven2/trove/trove/2.1.1/trove-2.1.1.jar[INFO]
Unable to find resource 'jpl-pattern:jpl-pattern:jar:1.0' in repository
central (http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla mode[INFO] Unable to find
resource 'jpl-util:jpl-util:jar:1.0' in repository central
(http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla mode[INFO] Unable to find
resource 'trove:trove:jar:2.1.1' in repository central
(http://repo1.maven.org/maven2)[WARNING] Skipping jpp repository
file:///usr/share/maven2/repository in vanilla mode[INFO]
------------------------------------------------------------------------[ERROR]
BUILD ERROR[INFO]
------------------------------------------------------------------------[INFO]
Failed to resolve artifact.
Missing:----------1) javax.security:jaas:jar:1.0.01
Try downloading the file manually from:
http://java.sun.com/products/jaas/index-10.html
Then, install it using the command: mvn install:install-file
-DgroupId=javax.security -DartifactId=jaas -Dversion=1.0.01 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deploy-file -DgroupId=javax.security
-DartifactId=jaas -Dversion=1.0.01 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency: 1)
org.jboss.mod_cluster:mod_cluster:jar:1.1.2.Final 2)
org.jboss.jbossas:jboss-as-server:jar:5.1.0.GA 3)
javax.security:jaas:jar:1.0.01
2) jpl-pattern:jpl-pattern:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file
-DgroupId=jpl-pattern -DartifactId=jpl-pattern -Dversion=1.0
-Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deploy-file -DgroupId=jpl-pattern
-DartifactId=jpl-pattern -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency: 1)
org.jboss.mod_cluster:mod_cluster:jar:1.1.2.Final 2)
org.jboss.jbossas:jboss-as-server:jar:5.1.0.GA 3)
jpl-pattern:jpl-pattern:jar:1.0
3) jpl-util:jpl-util:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file
-DgroupId=jpl-util -DartifactId=jpl-util -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deploy-file -DgroupId=jpl-util
-DartifactId=jpl-util -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency: 1)
org.jboss.mod_cluster:mod_cluster:jar:1.1.2.Final 2)
org.jboss.jbossas:jboss-as-server:jar:5.1.0.GA 3)
jpl-util:jpl-util:jar:1.0
4) trove:trove:jar:2.1.1
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file
-DgroupId=trove -DartifactId=trove -Dversion=2.1.1 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deploy-file -DgroupId=trove -DartifactId=trove
-Dversion=2.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
Path to dependency: 1)
org.jboss.mod_cluster:mod_cluster:jar:1.1.2.Final 2)
org.jboss.cluster:jboss-ha-server-api:jar:1.1.1.GA 3)
org.jboss.cluster:jboss-ha-client:jar:1.1.0.GA 4)
org.jboss.aspects:jboss-remoting-aspects:jar:1.0.1.CR2 5)
org.jboss.aop:jboss-aop:jar:2.1.1.GA 6) trove:trove:jar:2.1.1
----------4 required artifacts are missing.
for artifact: org.jboss.mod_cluster:mod_cluster:jar:1.1.2.Final
from the specified remote repositories: central
(http://repo1.maven.org/maven2), repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/), __jpp_repo__
(file:///usr/share/maven2/repository)
[INFO]
------------------------------------------------------------------------[INFO]
For more information, run Maven with the -e switch[INFO]
------------------------------------------------------------------------[INFO]
Total time: 12 seconds[INFO] Finished at: Tue May 24 20:34:35 BRT
2011[INFO] Final Memory: 28M/174M[INFO]
------------------------------------------------------------------------
[]s, Fernando Lozano
13 years, 1 month
[jBPM] - JBPM5 running processess/tasks behaviour when App Server shutdown/restart
by Anand Prakash
Anand Prakash [http://community.jboss.org/people/anandintouch] created the discussion
"JBPM5 running processess/tasks behaviour when App Server shutdown/restart"
To view the discussion, visit: http://community.jboss.org/message/606838#606838
--------------------------------------------------------------
My question is related to JBPM5 in case when we shutdown/restart app server(tomcat5) then what happens to running processes/task.
1. Can we complete running processess/tasks when server restart ?Meaning will jbpm kick off old running processess/tasks and work as it is?
If so then SessionInfo tables has one record related to last session then will it pick up that session ?
2. If SessionInfo table need to maintain all records(sessions which were running before server down) then do we need to drop and create new hibernate_sequence when next time server starts which creates new session record with id "1" which is used in CommandDelegate to load knowledgesession as below-
StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(1, kbase, config, env);
We are creating new hibernate_sequence whenever server starts if hibernate_sequence doesn not exixts. So if it exists then SessionInfo table has record with id greater than 1 like 520,640 etc. ,So will this create issue in trigerring old processes/task which was running before server shutdown?
I would appreciate if anybody has any idea or comments.
Thanks,
Anand
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606838#606838]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM] - Group assignment and action on tasks
by Sasi R
Sasi R [http://community.jboss.org/people/sasir] created the discussion
"Group assignment and action on tasks"
To view the discussion, visit: http://community.jboss.org/message/595376#595376
--------------------------------------------------------------
Am able to define and assign the groupid tohuman task and able to pull the list of tasks using TaskClient. Howwever am unable to action further(like release/claim/start/complete) on the items assigned to the group using the member of group as userid.
How does TaskServer behave in this scenario? Am i missing something here??
Code Snippet
*******
*For Group Assignment*
MinaTaskServer server;
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task");
TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
TaskServiceSession taskSession= taskService.createSession();
server = new MinaTaskServer(taskService);
Thread thread = new Thread(server);
List<OrganizationalEntity> usersList=new ArrayList<OrganizationalEntity>();
usersList.add(**new** User("sasi"));
usersList.add(**new** User("venkat"));
usersList.add(**new** User("krisv"));
usersList.add(**new** User("mary"));
BPMTaskUserInfo userInfo = **new**BPMTaskUserInfo();
taskService.setUserinfo(userInfo);
userInfo.getGroups().put(**new** Group("Group1"), usersList);
userInfo.getGroups().put(**new** Group("Group2"), usersList);
userInfo.getGroups().put(**new** Group("Group3"), usersList);
#####
###
####
#
*For retrieving tasks*
**
public static void getTasks(StatefulKnowledgeSession ksession){
WorkItemHandler htHandler = new WSHumanTaskHandler();
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", htHandler);
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1",new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
boolean isConnected = client.connect("127.0.0.1", 9123);
System.out.println("client conencted :"+isConnected);
BlockingTaskSummaryResponseHandler summaryHandler = new BlockingTaskSummaryResponseHandler();
int timeoutCounter = 0;
List<TaskSummary> tasks;
List<String> groups= new ArrayList<String>();
groups.add("Group1");
do {
client.getTasksAssignedAsPotentialOwner("sasi",groups, "en-UK", summaryHandler);
tasks = summaryHandler.getResults();
TaskSummary task = null;
for (TaskSummary taskSummary : tasks)
{
System.out.println(taskSummary.getId() + " : " + taskSummary.getName());
}
//wait until the task is registered with the server or timeout expires
if (timeoutCounter != 0) {
try {
Thread.sleep(10);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} while (tasks.isEmpty() && timeoutCounter++ < 10);
System.out.println("Tasks size is"+tasks.size());
TaskSummary task = tasks.get(0);
System.out.println("Task details are "+task.getId());
BlockingTaskOperationResponseHandler operationHandler =
new BlockingTaskOperationResponseHandler();
client.release(task.getId(), "Administrator", operationHandler);
operationHandler.waitTillDone(5000);
operationHandler =
new BlockingTaskOperationResponseHandler();
client.claim(task.getId(), "sasi", operationHandler);
operationHandler.waitTillDone(5000);
operationHandler =
new BlockingTaskOperationResponseHandler();
client.start(task.getId(), "sasi", operationHandler);
operationHandler.waitTillDone(5000);
operationHandler =
new BlockingTaskOperationResponseHandler();
client.complete(task.getId(), "sasi", null,
operationHandler);
operationHandler.waitTillDone(5000);
}
*Error:*
[2011:03:83 11:03:898:debug] Arguments : [[org.jbpm.task.query.TaskSummary@3585d013, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@7fc4f753 org.jbpm.task.query.TaskSummary@7fc4f753, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@c2579d8d org.jbpm.task.query.TaskSummary@c2579d8d, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@73ef06e5 org.jbpm.task.query.TaskSummary@73ef06e5, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@2d60e703 org.jbpm.task.query.TaskSummary@2d60e703, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@aa5cc20b org.jbpm.task.query.TaskSummary@aa5cc20b, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@33aad8e3 org.jbpm.task.query.TaskSummary@33aad8e3, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@105b609b org.jbpm.task.query.TaskSummary@105b609b, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@9a153a13 org.jbpm.task.query.TaskSummary@9a153a13, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@2398c26b org.jbpm.task.query.TaskSummary@2398c26b, http://community.jboss.org/mailto:org.jbpm.task.query.TaskSummary@63ece17b org.jbpm.task.query.TaskSummary@63ece17b]]
5105 : Event-Ready-Task
9905 : Event-Ready-Task
3755 : Event-Ready-Task
4355 : Event-Ready-Task
8705 : Event-Ready-Task
5705 : Event-Ready-Task
6305 : Event-Ready-Task
6905 : Event-Ready-Task
7505 : Event-Ready-Task
8105 : Event-Ready-Task
9305 : Event-Ready-Task
Tasks size is11
Task details are 5105
org.jbpm.task.service.PermissionDeniedException: Server-side Exception: User '[User:'Administrator']' was unable to execution operation 'Release' on task id 5105 due to no 'current status' matchines
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jbpm.task.service.responsehandlers.AbstractBaseResponseHandler.createSideException(AbstractBaseResponseHandler.java:74)
at org.jbpm.task.service.responsehandlers.AbstractBlockingResponseHandler.waitTillDone(AbstractBlockingResponseHandler.java:48)
at com.sample.CorporateActionsNewTest.getTasks(CorporateActionsNewTest.java:132)
at com.sample.CorporateActionsNewTest.main(CorporateActionsNewTest.java:60)
[2011:03:83 11:03:37:debug] Message receieved on client : OperationResponse
[2011:03:83 11:03:38:debug] Arguments : [org.jbpm.task.service.PermissionDeniedException: User '[User:'Administrator']' was unable to execution operation 'Release' on task id 5105 due to no 'current status' matchines]
If i try with Sasi for release
org.jbpm.task.service.PermissionDeniedException: Server-side Exception: User '[User:'sasi']' was unable to execution operation 'Release' on task id 5105 due to no 'current status' matchines
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jbpm.task.service.responsehandlers.AbstractBaseResponseHandler.createSideException(AbstractBaseResponseHandler.java:74)
at org.jbpm.task.service.responsehandlers.AbstractBlockingResponseHandler.waitTillDone(AbstractBlockingResponseHandler.java:48)[2011:03:83 11:03:626:debug] Message receieved on client : OperationResponse
[2011:03:83 11:03:627:debug] Arguments : [org.jbpm.task.service.PermissionDeniedException: User '[User:'sasi']' was unable to execution operation 'Release' on task id 5105 due to no 'current status' matchines]
at com.sample.CorporateActionsNewTest.getTasks(CorporateActionsNewTest.java:132)
at com.sample.CorporateActionsNewTest.main(CorporateActionsNewTest.java:60)
5105 task is with 'Ready' status in datasbase
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/595376#595376]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
Re: [jboss-user] [JNDI and Naming] - LDAP connection management
by fernando@lozano.eti.br
Hi,
I guess you would need a JCA resource adapter (RAR) for LDAP/JNDI, like the
ones Java EE and JBoss AS have for JDBC, JMS and JavaMail. If you do find
(or write) one, please tell the list.
[]s, Fernando Lozano
---- Original Message ----
From: borfnorton22 borfnorton22
To: "User development"
Sent: Ter, Mai 24, 2011, 16:25 PM
Subject: [jboss-user] [JNDI and Naming] - LDAP connection management
JBoss Community (http://community.jboss.org/index.jspa)
LDAP connection management
created by borfnorton22 borfnorton22
(http://community.jboss.org/people/borfnorton22) in JNDI and Naming - View
the full discussion (http://community.jboss.org/message/606808#606808)
------------------------------------
Hi,
We have an application which makes use of LDAP connections to an external
LDAP server for various operation.
This application resides in two different datacenters in different parts
of the world (A and B) and each (A and B) should be connecting to different
LDAP datasources (i.e. A connects to LDAP-A, and B connects to LDAP-B)
The application runs on Jboss 6 and the code that needs the LDAP
connections is simply in an stateless EJB
We would like the Jboss servers in A and B to have a way to provide the
LDAP connections, similar to how we wire in actual @Resource jboss -DS.xml
defined DataSources.
Is this possible (container managed ldap connections)? Or is there a way
for the container to store ldap connection config info (i.e. the hostname,
credentials) that the EJB can have injected and create the JNDI connection
on its own?
Reply to this message by going to Community
(http://community.jboss.org/message/606808#606808)
Start a new discussion in JNDI and Naming at Community
(http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...)
13 years, 1 month