[JBoss Seam] - Always assign to a given actor
by limousyf
Hello,
I designed a validation process using the GPD and I want to use it in my seam app.
I lack example of assignment to any other actor than the logged in user so I'm asking here.
When I log my user in, I set the built-in Actor component to the user id.
The user creates a document an sed it ot his superior for validation.
So I created a task node, with assignment to #{actor.id}, and I made something like this:
| @StartTask
| @EndTask(transition="demandeValidationNPlusUn")
| public void demandeValidationNPlusUn(){
|
| //Look for superior in database
| Valideur valideur1 = (Valideur)em.createQuery("select valideur from Valideur valideur where typeValidation=:typeValidation")
| .setParameter("typeValidation", "Valideur1")
| .getSingleResult();
|
| actor.setId(""+valideur1.getCollaborateur().getCollaborateurId());
|
| certificationHome.setCertificationCertificationId(this.certificationId.intValue());
| Certification certifTest =certificationHome.find();
|
| certificationHome.getInstance().setStatut("Attente de Validation");
| certificationHome.persist();
| this.statut = certificationHome.getInstance().getStatut();
| }
|
Let me explain (there's a bit of french, could be confusing btw).
I fetch the superior from the database and put his id in the Actor component, then modify the object, status, save, etc ...
The transition is ok, assigned to the superior but the actor component is changed is this method !
So when I display back my #{taskInstanceList} datatable, the list displayed is the superior one.
I have to log out / log in to reset the actor to my logged user and have a correct taskInstanceList.
I'm sure I'm not using the actor or @StartTask/@EndTask the way it should be but I can't find an example of assignment to another actor.
Can anybody please help me ? (or tell me where I can find an example)
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052587#4052587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052587
18Â years, 10Â months
[Installation, Configuration & Deployment] - Dynamically loading a class at JBoss startup that uses a thi
by psyllogism
I am using JBoss 4.04 installed with EJB 3.0
I have an application that I am trying to deploy in an EAR, and in this application I have an MBean that tries to dynamically load a non-EJB class as JBoss is starting up. The MBean basically looks like this:
@Service(objectName="jboss.mx:service=ClassPreloadService")
| @Management(ClassPreloadManagement.class)
| public class ClassPreloadService implements ClassPreloadManagement {
|
| public void start() throws Exception {
| Class.forName("com.example.MyClass");
| }
| }
However, MyClass uses a third-party jar. If I put this third-party jar in %JBOSS_HOME%/server/default/lib, add the environment variable JBOSS_CLASSPATH to Windows, and set it to be %JBOSS_HOME%/server/default/lib/third-party.jar then I can get the class to load. But I'm pretty sure that this is a hack.
I also have third-party.jar in my EAR file, but it can't seem to find it there. Even if I add this line to my application.xml file:
<module>
| <java>
| third-party.jar
| </java>
| </module>
Please, how can I get this class to load at startup without resorting to putting the jar in %JBOSS_HOME%/server/default/lib ? Or is that really the proper way to do it? Thanks for your help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052584#4052584
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052584
18Â years, 10Â months
[Installation, Configuration & Deployment] - Re: SingleScheduleProvider and daylight savings?
by hale2jo
Here it is...
| ================================================================================
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /usr/jboss-3.2.8.SP1
|
| JAVA:
|
| JAVA_OPTS: -server -Xmx512m -XX:PermSize=96m -XX:MaxPermSize=128m -Dprogram.name=jboss
|
| CLASSPATH: /usr/jboss-3.2.8.SP1/bin/run.jar:/usr/java/jdk1.5.0_02/lib/tools.jar
|
| CMD_START: /usr/java/jdk1.5.0_02/bin/java -server -Xmx512m -XX:PermSize=96m -XX:MaxPermSize=128m -Dprogram.name=jboss -classpath /usr/jboss-3.2.8.SP1/bin/run.jar:/usr/java/jdk1.5.0_02/lib/tools.jar org.jboss.Main -c appServer -Djava.security.manager=java.lang.SecurityManager -Djava.security.policy=/usr/jboss-3.2.8.SP1/server/appServer/conf/server.policy -Djava.rmi.server.codebase="file:/usr/jboss-3.2.8.SP1/server/appServer/lib/KDCSservices.jar file:/usr/jboss-3.2.8.SP1/server/appServer/lib/kdcsclient.jar" -Djava.rmi.server.hostname=blitz -Dkdcs.hostname=blitz -Djboss.platform.mbeanserver -Djava.endorsed.dirs=/usr/jboss-3.2.8.SP1/lib/endorsed
| ================================================================================
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052576#4052576
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052576
18Â years, 10Â months