[jBPM] - Send notifications for unassigned tasks in jBPM 4 [errata]
by Andrea R
rapa [http://community.jboss.org/people/rapa] created the discussion
"Send notifications for unassigned tasks in jBPM 4 [errata]"
To view the discussion, visit: http://community.jboss.org/message/574907#574907
--------------------------------------------------------------
Hi,
I am using jBPM 4.4 with Seam 2.2, running on JBoss 4.2.
I couldn't find anything in the user guide nor examples on internet for this quite standard situation:
I would like to send a notification for newly created tasks, which are not yet assigned.
This is not very useful since I would like to notify users from an assignable group that a task
Hi,
Sorry, this is an errata corrige of the discussion http://community.jboss.org/message/574898#574898 http://community.jboss.org/message/574898 which I submitted by mistake before finishing the message... Here is the correct text:
I am using jBPM 4.4 with Seam 2.2, running on JBoss 4.2.
I couldn't find anything in the user guide nor examples on internet for this quite standard situation:
I would like to send a notification for newly created tasks, which are not yet assigned.
It seems like jBPM sends notifications only when tasks are assigned to someone. This is not very useful in my case since I would like to notify users from an assignable group that a task is pending. One of them should then take it and work on it.
Here is the task definition.
<task candidate-groups="managers" g="243,49,127,52" name="Review Registration">
<notification template="jbpm_approvepartreg_task" />
<transition name="approve" to="State 1" g="7,-11" />
<transition name="reject" to="State 2" g="-13,8" />
</task>
And the email template. Basically, the email should go out to the "tos" specified in the email template.
<mail-template name="jbpm_approvepartreg_task">
<from addresses="jbpm(a)mydomain.com (mailto:jbpm@mydomain.com)" />
<to addresses="xyz(a)mydomain.com (mailto:xyz@mydomain.com)" />
<subject>Pending Task Notification - ${task.name}</subject>
<text>Some text here</text>
</mail-template>
Anybody has an idea how to deal with this problem?
Cheers,
Andrea
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574907#574907]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss Tools] - JBoss Tools Richfaces support for RichFaces 4.x?
by rory evans
rory evans [http://community.jboss.org/people/rjevans2000] created the discussion
"JBoss Tools Richfaces support for RichFaces 4.x?"
To view the discussion, visit: http://community.jboss.org/message/574780#574780
--------------------------------------------------------------
Hi,
I've recently moved my project to use RichFaces 4.0.0.M4. However, I am still using version 3.1.1.v201006011046R-H111-GA of the JBoss Tools RichFaces Eclipse plugin. Currently Eclipse highlights any usage of RichFaces tags in xhtml pages as a warning because it cannot find the associated tag class (for example; <rich:calendar> generates a warning along the lines of 'cannot find org.richfaces.taglib.CalendarTag).
I have been informed that RichFaces 4.x no longer uses tag classes and so I can only assume that the version of the JBoss Tools RichFaces plugin that I'm using does not support RichFaces 4.x. Please can somebody confirm that this is the case and, if so, point me in the direction of a version of the plugin that does support RichFaces 4.x?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574780#574780]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss Tools] - Noobie seeks help
by Wojtek Augustynski
Wojtek Augustynski [http://community.jboss.org/people/waugust] created the discussion
"Noobie seeks help"
To view the discussion, visit: http://community.jboss.org/message/574819#574819
--------------------------------------------------------------
Greetings!
I'm a little frustrated. Nothing seems to be working out for me.
Running Helios with the latest JBoss Tools, JBoss 6.0, JDK 6 (on crappy windoze 7 as Ubuntu is a little behind in the repos)
It seems that whenever I start a new Seam Web Project, set on auto-deploy I get this lovely deployment exception:
[org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfs:///C:/JBoss/jboss-as-distribution-6.0.0.20101110-CR1/jboss-6.0.0.20101110-CR1/server/default/deploy/MySeam.war state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///C:/JBoss/jboss-as-distribution-6.0.0.20101110-CR1/jboss-6.0.0.20101110-CR1/server/default/deploy/MySeam.war
I get the same thing trying seam-gen.
I swear I googled to no end....
My gratitude to any assistance in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574819#574819]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[Javassist] - VerifyError when invoking a modified method
by Ahmed Mostafa
Ahmed Mostafa [http://community.jboss.org/people/ahmed.s.mostafa] created the discussion
"VerifyError when invoking a modified method"
To view the discussion, visit: http://community.jboss.org/message/574803#574803
--------------------------------------------------------------
Hello everyone,
I'm working on a demo for dependency injection automation. My work is divided between creating new classes and modifying an existing class.
The new generated classes are running fine when trying to instantiate them from any new java program I create.
However, the modified class isn't running and throws the following exception, although I'm able to use the three classes within eclipse; i can browse the methods, I can even decompile them and see to the generated code, it is only a matter of running the main (existing) class:
Exception in thread "main" java.lang.VerifyError: (class: generated/myjseuss/EmailSender, method: sendEmail signature: (Lch/unibnf/scg/sample/model/Email;)V) Bad type in putfield/putstatic
The modifications I do are the following:
1- create Guice binder instance variable.
2- create Guice injector instance variable.
3- add the instance variables (CtField) into the target class.
4- I have faced some troubles for initializing the objects, only the following approach worked with me:
String constructorSrc = "";
String constructBinder = "dummyBinder" + " = new "
+ ctGuiceBinder.getName() + "();";
String constructInjector = "dummyInjector" + " = "
+ Guice.class.getName()
+ ".createInjector( new com.google.inject.Module[]{"
+ "dummyBinder" + "});";
String binderEqual = binderField.getName() + " = dummyBinder;";
String injectorEqual = injectorField.getName() + " = dummyInjector;";
ctConstructor.addLocalVariable("dummyBinder",
binderField.getType());
ctConstructor.addLocalVariable("dummyInjector",
injectorField.getType());
constructorSrc = "{" + constructBinder + constructInjector
+ "}";
ctConstructor.insertAfter(constructorSrc);
constructorSrc = "{" + binderEqual + "\n" + injectorEqual
+ "};";
ctConstructor.insertAfter(constructorSrc);
private static void createConstructor(CtClass ctContainer,
CtClass ctGuiceBinder, CtField binderField, CtField injectorField)
throws CannotCompileException, NotFoundException {
String constructorSrc = "";
String constructBinder = "dummyBinder" + " = new "
+ ctGuiceBinder.getName() + "();";
String constructInjector = "dummyInjector" + " = "
+ Guice.class.getName()
+ ".createInjector( new com.google.inject.Module[]{"
+ "dummyBinder" + "});";
String binderEqual = binderField.getName() + " = dummyBinder;";
String injectorEqual = injectorField.getName() + " = dummyInjector;";
CtConstructor[] inits = ctContainer.getConstructors();
if (inits != null && inits.length > 0) {
for (CtConstructor ctConstructor : inits) {
ctConstructor.addLocalVariable("dummyBinder",
binderField.getType());
ctConstructor.addLocalVariable("dummyInjector",
injectorField.getType());
constructorSrc = "{" + constructBinder + constructInjector
+ "}";
ctConstructor.insertAfter(constructorSrc);
constructorSrc = "{" + binderEqual + "\n" + injectorEqual
+ "};";
ctConstructor.insertAfter(constructorSrc);
}
} else {
String constructorPrefix = "public " + ctContainer.getSimpleName()
+ "(){";
String constructorSuffix = "}";
// create a new constructor
constructorSrc = constructorPrefix + constructBinder
+ constructInjector + constructorSuffix;
CtConstructor constructor = CtNewConstructor.make(constructorSrc,
ctContainer);
ctContainer.addConstructor(constructor);
}
}String constructorSrc = "";
String constructBinder = "dummyBinder" + " = new "
+ ctGuiceBinder.getName() + "();";
String constructInjector = "dummyInjector" + " = "
+ Guice.class.getName()
+ ".createInjector( new com.google.inject.Module[]{"
+ "dummyBinder" + "});";
String binderEqual = binderField.getName() + " = dummyBinder;";
String injectorEqual = injectorField.getName() + " = dummyInjector;";
5- I'm changing the data type of one of the class instance variables to another interface type; which I then inject its concrete implementation using Guice, as follows:
if (ctField.getType().equals(ctCurrentType)) {
ctField.setType(ctNewType);
ctContainer.instrument(new NewGuiceExprEditor(ctCurrentType,
ctNewType, injectorField));
}
6- The ExprEditor replaces the "new" expression with the injector's getInstance method, as follows:
String replacement = "$_= (" + (ctInterfaceType.getName()) + ")" + injectorField.getName()
+ ".getInstance(" + ctInterfaceType.getName()
+ ".class);";
e.replace(replacement);
As I said earlier, the generated .class files are well accepted by eclipse (Helios), decompiling the .class files (including the above) to Java is also ok and no problems at all when running them.
I'm using Javassist 3.14.0GA on Windows XP with JDK 1.6
*The generated bytecode are attached a long with a demo sample.
*
I will really appreciate your feedback asap.
*NOTE*: the sample demo needs Google Guice jars (guice-2.0.jar, aopalliance.jar, guice-assistedinject-2.0.jar)
*Your quick response is highly appreciated.*
Thanks, Ahmed.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574803#574803]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JNDI and Naming] - javax.naming.NameNotFoundException: Model not bound Deployment
by Omar Dawod
Omar Dawod [http://community.jboss.org/people/omardawod119] created the discussion
"javax.naming.NameNotFoundException: Model not bound Deployment"
To view the discussion, visit: http://community.jboss.org/message/574715#574715
--------------------------------------------------------------
Hi all,
I am getting this error when deploying - Please help me running this simple ejb3 application :
* Failed to create Resource RemarksEJBS.jar - cause: java.lang.Exception:Failed to start deployment [vfs:///C:/jboss-6.0.0.20101110-CR1/server/default/deploy/RemarksEJBS.jar] during deployment of 'RemarksEJBS.jar' - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=RemarksEJBS.jar#Model' **") Deployment "jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall") DEPLOYMENTS IN ERROR: Deployment "persistence.unit:unitName=RemarksEJBS.jar#Model" is in error due to the following reason(s): javax.naming.NameNotFoundException: Model not bound Deployment "<UNKNOWN jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=RemarksEJBS.jar#Model' ** -> org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=RemarksEJBS.jar#Model' **") Deployment "jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall") DEPLOYMENTS IN ERROR: Deployment "persistence.unit:unitName=RemarksEJBS.jar#Model" is in error due to the following reason(s): javax.naming.NameNotFoundException: Model not bound Deployment "<UNKNOWN jboss.j2ee:jar=RemarksEJBS.jar,name=RemarksEJB,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=RemarksEJBS.jar#Model' **
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574715#574715]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - How to revisit an old state in jbpm 3.2.8?
by Buat Apa
Buat Apa [http://community.jboss.org/people/buatapa] created the discussion
"How to revisit an old state in jbpm 3.2.8?"
To view the discussion, visit: http://community.jboss.org/message/574799#574799
--------------------------------------------------------------
I tried the followings using jbpm 3.2.8. When I end with "no", which should go back to the previous state (*submitForm)*, but I got the following errors occasionally. Did I do something wrong, or what is the right way?
Caused by:
java.util.ConcurrentModificationExceptionat java.util.HashMap$HashIterator.nextEntry(
HashMap.java:793
)at java.util.HashMap$KeyIterator.next(
HashMap.java:828
)at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(
AbstractPersistentCollection.java:555
)
java code (I am in open approveForm state)
Collection taskList = processInstance.getTaskMgmtInstance().getTaskInstances();
Iterator<?> iter = taskList.iterator();
*while* (iter.hasNext()) { TaskInstance taskInstance = (TaskInstance) iter.next();
* if* (taskInstance.isOpen()) {
taskInstance.*end*(approve ?
"yes" *:**"no"*); }
}
......
process definition code
<start-state name="start">
<transition to="submitForm"></transition>
</start-state>
<task-node name="*submitForm*">
<task name="submitForm">
<assignment actor-id="submitter"></assignment>
</task>
<transition to="approveForm"></transition>
</task-node>
<task-node name="approveForm">
<task name="approveForm">
<assignment actor-id="approver"></assignment>
</task>
<transition to="end" name="yes"></transition>
<transition to="*submitForm*" name="*no*"></transition>
</task-node>
<end-state name="end">
</end-state>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574799#574799]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss Web Services] - Web Services with JBoss 5.1
by Igor JStarter
Igor JStarter [http://community.jboss.org/people/izgur] created the discussion
"Web Services with JBoss 5.1"
To view the discussion, visit: http://community.jboss.org/message/574193#574193
--------------------------------------------------------------
Hey, I'm still trying to do a web service on JBoss 5.1.
I installed(set JBOSS_HOME, run run.bat) now a fresh copy of *JBoss-5.1.0-GA-jdk6* (windows xp). In the log I see:
09:00:49,770 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
09:00:49,770 INFO [NativeServerConfig] 3.1.2.GA
And after it is started:
org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(WebServiceProjectEAR.ear)
Caused by: java.lang.RuntimeException: Error determining structure: WebServiceProjectEAR.ear
aused by: java.lang.RuntimeException: WebServiceProject.war module listed in application.xml does not exist within
........
And when I stop the server:
09:08:18,222 ERROR [ProfileDeployAction] Error when uninstalling profile: org.jboss.system.tools.ProfileServiceDeploymentRepositoryAdapter$DeploymentScannerProfile@12561dc
java.lang.IllegalStateException: Deployers are shutdown
....
*When I try to make a Web Service in Eclipse - bottom up java bean :*
There is a project name and a EAR project name. The EAR project name is set to a old web service project, which I shouldn't exist anymore.
Could this be a problem ? And I don't know where it gets the WebServiceProject -- EAR ?
Error: Could not generate. (use --show-traces to see full traces)
Error: org/jboss/wsf/spi/deployment/UnifiedVirtualFile
Any idea ?
I was reading http://community.jboss.org/message/548723#548723 http://community.jboss.org/message/548723#548723. Should i delete the jbossws-deployer&co files ?
Somewhere is read about a class-loader problem ?!
I tried the http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/beta500/htm... http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/beta500/htm... approach too. I get just:
09:01:40,490 INFO [TomcatDeployment] deploy, ctxPath=/echo
09:01:40,537 WARNING [config] Unable to process deployment descriptor for context '/echo'
09:01:40,537 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/echo'
And nothing works ...
PLEASE HELP!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/574193#574193]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months