[JBoss jBPM] - Re: Programmatically creating workflows
by jmjava
"kbarfield" wrote :
|
|
| 2. Are the actual customizations you need changing the fundalemental flow of the process? For instance, are you going from a process that was A>B>C to H>Q>U>V? Or is it the case that the process variables and who gets assigned tasks what is changing? The later case is more of what we see, and for these types of cases you can use JBoss Rules with jBPM and have the rules be different for the different scenarios, not the underlying process definition.
At a task level i think my workflow will remain the same. ( I can define pieces of workflow that remain constant) It's just the combination and order of execution that may vary so i may fall into the A>B>C to H>Q>V category
Are you saying that this is not possible programatically?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964369#3964369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964369
19 years, 9 months
[JBoss Seam] - Question on Seam example
by gus888
Hi Peter(petemuir) and other friends,
I have a question in the seam example. I found there are two different ways for one session bean (event, conversation and session) calling another session bean. One way is inject a session bean in a stateless bean and call another session bean. The other is inject a session directly into another session bean and call the session bean. I am wondering whether the two way are equivelent or not, and at which situation one way is better than the other way. Thank you so much in advance. The two way example codes are as follows:
One way:@Name("projectFinder")
| @Stateful
| @Scope(ScopeType.SESSION)
| public class ProjectFinderBean implements ProjectFinder {
|
| @DataModel(scope=ScopeType.PAGE)
| private List<Project> projectList;
|
| @DataModelSelection
| private Project selectedProject;
|
| public Project getSelection() {
| return selectedProject;
| }
| ...
|
| }
|
| @Stateless
| @Name("projectSelector")
| public class ProjectSelectorBean implements ProjectSelector {
|
| @In(create=true)
| private transient ProjectFinder projectFinder;
|
| public String select() {
| projectEditor.setInstance( projectFinder.getSelection() );
| executeQuery();
| return "findIssue";
| }
| }
|
| @Name("issueFinder")
| @Stateful
| @Scope(ScopeType.SESSION)
| public class IssueFinderBean implements IssueFinder {
|
| public void setProject(Project project) {
| this.project = project;
| }
|
| public void executeQuery() {
| ...
| }
| }
|
The other way:
@Name("projectFinder")
| @Stateful
| @Scope(ScopeType.SESSION)
| public class ProjectFinderBean implements ProjectFinder {
|
| @DataModel(scope=ScopeType.PAGE)
| private List<Project> projectList;
|
| @DataModelSelection
| private Project selectedProject;
|
| public Project getSelection() {
| return selectedProject;
| }
| ...
|
| }
|
| @Name("issueFinder")
| @Stateful
| @Scope(ScopeType.SESSION)
| public class IssueFinderBean implements IssueFinder {
|
| @In(create=true)
| private transient ProjectFinder projectFinder;
|
|
| public String select() {
| project = projectFinder.getSelection();
| executeQuery();
| return "findIssue";
| }
|
| public void executeQuery() {
| ...
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964368#3964368
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964368
19 years, 9 months
[Installation, Configuration & Deployment] - Re: Help on different instances of jboss
by jaikiran
To summarize, here's what you are trying to achieve:
1) Run 2 instances of JBoss on the same machine
2) Point each instance to use different versions of Java.
Here's how you can do it:
1) To run multiple instances on same machine:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstance...
2) To set each instance to point to different Java versions:
Each JBoss will have will be launched using the run.bat file which is present in %JBOSS_HOME%/bin directory. You will have to change this file as follows:
For the JBoss which you want to run with Java 1.5 add JAVA_HOME entry to point to your Java1.5 home:
@echo off
| rem -------------------------------------------------------------------------
| rem JBoss Bootstrap Script for Win32
| rem -------------------------------------------------------------------------
|
| rem $Id: run.bat,v 1.13.4.3 2006/05/12 10:40:07 dimitris Exp $
|
| set JAVA_HOME="C:/jdk1.5.0_07"
In the other JBoss on which you want to use Java 1.4 change run.bat to:
rem -------------------------------------------------------------------------
| rem JBoss Bootstrap Script for Win32
| rem -------------------------------------------------------------------------
|
| rem $Id: run.bat,v 1.4.4.4 2003/11/12 03:16:35 juhalindfors Exp $
| set JAVA_HOME="C:/j2sdk1.4.2_04"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964363#3964363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964363
19 years, 9 months