[JBoss jBPM] - can i fork and then join up an end-user specified number of
by simbo1905
I am evaluating jbpm for embedding within an insurance trading system. We have a very typical scenario where the insurance broker markets the client risk to a number of insurance companies. What markets are selected for which risks is mostly discressionary for the broker based on the particular client need. This leads me to my problem. If I were do to some swimlanes on the graphical modelling tools I don't know how many swim lanes I need until runtime as I don't now whether I need to fork to 1, 2 or 12 different subprocesses for the number of markets selected by the broker.
I would like to fork into a set of parrellel subprocess then join them back again once each selected insurance company has given a quote. I cannot see how I would graphically model things so that a parent process "forks to a user specified number of subprocesses then joins them all back up".
I am sure that I am missing something at a conceptual level as to how to do what I want. Can someone give me some pointers as to how to start a variable number of subprocesses and join them without having to hand code the folks and joins? Would the normal approach just be to write an action that programmatically launches the variable number of seperate processes? That would mean that I would have to "programmatically join them myself" by having a job wait monitor the spawned processes to see if they have completed and then signal the original process instance that the broker now has to pick the best quote?
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224897#4224897
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224897
17 years
[JBoss Portal] - Re: URGENT - Problem when deploying on jboss portal
by aj_jboss
I did not explain properly.
When i removed the 'portlet-api-lib.jar' from my 'lib' folder, in eclipse it was giving compilation error in 'PortletDefination.java' for 'import javax.portlet.*;', so in eclipse, 'properties-java build path-liabraries' i had to add the jar file from 'ADD EXTERNAL JAR' button.
In 'portlet.xml' file, when i tried to use 'org.apache.myfaces.portlet.MyFacesGenericPortlet' class, it was giving error 'portlet threw exception', but when i added 'myfaces.jar' file from 'ADD EXTERNAL JAR' button, it did not give any error and the problem got solved.
|
| <portlet>
| <portlet-name>JsfTest-HelloPortlet</portlet-name>
| <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
| <init-param>
| <name>default-view</name>
| <value>/pages/test.jsp</value>
| </init-param>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| </supports>
| <portlet-info>
| </portlet-info>
| </portlet>
|
|
These jar files are not in my 'war' but i have to keep them somewhere and using 'ADD EXTERNAL BUTTON' add them in the project, otherwise it gives compilation error.
So the 'classpath' file is also updated for these jar files.
I have explained the problem i was facing and how it got resolved, but i am confused.
What i have understood from this is ---
1) There are few jar files which are available in JBoss Portal, which should not be included in the application 'lib' folder.
2) In eclipse when i created the project it was giving compilation error, coz 'lib' doesn't have the jar files.
Please correct me if i am wrong.
How will the application take the jar files which are in JBoss Portal and not in 'war'?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224895#4224895
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224895
17 years